Class Sine2DWaveform

java.lang.Object
org.yamcs.studio.data.sim.SimFunction<VDoubleArray>
org.yamcs.studio.data.sim.Sine2DWaveform

public class Sine2DWaveform extends SimFunction<VDoubleArray>
Function to simulate a 2D waveform containing a sine wave.
  • Constructor Details

    • Sine2DWaveform

      public Sine2DWaveform()
      Creates sine wave of 100 samples, with period of 1 second, wavelength of 100 samples along the x axis, updating at 10 Hz.
    • Sine2DWaveform

      public Sine2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double updateRateInSeconds)
      Creates sine wave of 100 samples, with given period and given wavelength of 100 samples along the x axis, updating at given rate.
      Parameters:
      periodInSeconds - the period measured in seconds
      wavelengthInSamples - the wavelength measured in samples
      updateRateInSeconds - the update rate in seconds
    • Sine2DWaveform

      public Sine2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double nSamples, Double updateRateInSeconds)
      Creates sine wave of 100 samples, with given period and given wavelength of given number of samples along the x axis, updating at given rate.
      Parameters:
      periodInSeconds - the period measured in seconds
      wavelengthInSamples - the wavelength measured in samples
      nSamples - the number of samples
      updateRateInSeconds - the update rate in seconds
    • Sine2DWaveform

      public Sine2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double angle, Double xSamples, Double ySamples, Double updateRateInSeconds)
      Creates sine wave with given parameters.
      Parameters:
      periodInSeconds - the period measured in seconds
      wavelengthInSamples - the wavelength measured in samples
      angle - the direction of propagation for the wave
      xSamples - number of samples on the x direction
      ySamples - number of samples on the y direction
      updateRateInSeconds - the update rate in seconds