Create a periodic triangle wave, starting with the raise phase from the lowest sample.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double[] Triangle(
int length,
int raiseDuration,
int fallDuration,
double lowValue,
double highValue,
int delay = 0
)
Parameters
- length Int32
- The number of samples to generate.
- raiseDuration Int32
- Number of samples of the raise phase.
- fallDuration Int32
- Number of samples of the fall phase.
- lowValue Double
- Lowest sample value.
- highValue Double
- Highest sample value.
- delay Int32 (Optional)
- Optional delay.
Return Value
DoubleThe triangle-wave samples.
See Also