Create a periodic square wave, starting with the high phase.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double[] Square(
int length,
int highDuration,
int lowDuration,
double lowValue,
double highValue,
int delay = 0
)
Parameters
- length Int32
- The number of samples to generate.
- highDuration Int32
- Number of samples of the high phase.
- lowDuration Int32
- Number of samples of the low phase.
- lowValue Double
- Sample value to be emitted during the low phase.
- highValue Double
- Sample value to be emitted during the high phase.
- delay Int32 (Optional)
- Optional delay.
Return Value
DoubleThe square-wave samples.
See Also