GenerateSawtoothSequence Method |
Create an infinite periodic sawtooth wave sequence, starting with the lowest sample.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IEnumerable<double> SawtoothSequence(
int period,
double lowValue,
double highValue,
int delay = 0
)
Parameters
- period Int32
- Number of samples a full sawtooth period.
- lowValue Double
- Lowest sample value.
- highValue Double
- Highest sample value.
- delay Int32 (Optional)
- Optional delay.
Return Value
IEnumerableDoubleThe sawtooth-wave sample sequence.
See Also