예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="vo">The offset of the sine wave</param>
 /// <param name="va">The amplitude of the sine wave</param>
 /// <param name="freq">The frequency in Hz</param>
 /// <param name="td">The delay in seconds</param>
 /// <param name="theta">The damping factor</param>
 public Sine(double vo, double va, double freq, double td = 0.0, double theta = 0.0) : base("SINE")
 {
     VO.Set(vo);
     VA.Set(va);
     Freq.Set(freq);
     Delay.Set(td);
     Theta.Set(theta);
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="vo">The offset of the sine wave</param>
 /// <param name="va">The amplitude of the sine wave</param>
 /// <param name="freq">The frequency in Hz</param>
 /// <param name="td">The delay in seconds</param>
 /// <param name="theta">The damping factor</param>
 public Sine(double vo, double va, double freq, double td = double.NaN, double theta = double.NaN) : base()
 {
     VO.Set(vo);
     VA.Set(va);
     Freq.Set(freq);
     if (!double.IsNaN(td))
     {
         Delay.Set(td);
     }
     if (!double.IsNaN(theta))
     {
         Theta.Set(theta);
     }
 }