Module statrs::generate [] [src]

Provides utility functions for generating data sequences

Structs

Periodic

Finite iterator returning floats that form a periodic wave

Sawtooth

Finite iterator returning floats forming a sawtooth wave starting with the lowest sample

Sinusoidal

Finite iterator returning floats that form a sinusoidal wave

Square

Finite iterator returning floats forming a square wave starting with the high phase

Triangle

Finite iterator returning floats forming a triangle wave starting with the raise phase from the lowest sample

Functions

log_spaced

Generates a base 10 log spaced vector of the given length between the specified decade exponents (inclusive). Equivalent to MATLAB logspace

periodic [
Deprecated
]

Creates a vector of f64 points representing a periodic wave with an amplitude of 1.0, phase of 0.0, and delay of 0.

periodic_custom [
Deprecated
]

Creates a vector of f64 points representing a periodic wave.

sinusoidal [
Deprecated
]

Creates a vector of f64 points representing a Sine wave with a mean of 0.0, phase of 0.0, and delay of 0.

sinusoidal_custom [
Deprecated
]

Creates a vector of f64 points representing a Sine wave.