GenerateSquareSequence Method |
Create an infinite periodic square wave sequence, starting with the high phase.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IEnumerable<double> SquareSequence(
int highDuration,
int lowDuration,
double lowValue,
double highValue,
int delay = 0
)
Parameters
- 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
IEnumerableDoubleThe square-wave sample sequence.
See Also