Skip to content
  • Henry Weller's avatar
    DataEntry/Sine: New DataEntryType which evaluates a sin function with offset · 96f2e3f3
    Henry Weller authored
    Description
        Templated sine function with support for an offset level.
    
            \f[
                a sin(2 \pi f (t - t_0)) s + l
            \f]
    
        where
    
        \vartable
            a       | Amplitude
            f       | Frequency [1/s]
            s       | Type scale factor
            l       | Type offset level
            t_0     | Start time [s]
            t       | Time [s]
        \endvartable
    
        Example for a scalar:
        \verbatim
            <entryName> sine;
            <entryName>Coeffs
            {
                frequency 10;
                amplitude 0.1;
                scale     2e-6;
                level     2e-6;
            }
        \endverbatim
    
        Example for a vector:
        \verbatim
            <entryName> sine;
            <entryName>Coeffs
            {
                frequency 10;
                amplitude 1;
                scale     (1 0.1 0);
                level     (10 1 0);
            }
        \endverbatim
    96f2e3f3