Package org.yamcs.studio.data.sim
Class Sine2DWaveform
Function to simulate a 2D waveform containing a sine wave.
-
Field Summary
Fields inherited from class org.yamcs.studio.data.sim.SimFunction
lastTime
-
Constructor Summary
ConstructorDescriptionCreates sine wave of 100 samples, with period of 1 second, wavelength of 100 samples along the x axis, updating at 10 Hz.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.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.Sine2DWaveform
(Double periodInSeconds, Double wavelengthInSamples, Double angle, Double xSamples, Double ySamples, Double updateRateInSeconds) Creates sine wave with given parameters. -
Method Summary
Methods inherited from class org.yamcs.studio.data.sim.SimFunction
createValues, getTimeBetweenSamples
-
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 secondswavelengthInSamples
- the wavelength measured in samplesupdateRateInSeconds
- 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 secondswavelengthInSamples
- the wavelength measured in samplesnSamples
- the number of samplesupdateRateInSeconds
- 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 secondswavelengthInSamples
- the wavelength measured in samplesangle
- the direction of propagation for the wavexSamples
- number of samples on the x directionySamples
- number of samples on the y directionupdateRateInSeconds
- the update rate in seconds
-