[][src]Function statrs::generate::sinusoidal_custom

pub fn sinusoidal_custom(
    length: usize,
    sampling_rate: f64,
    frequency: f64,
    amplitude: f64,
    mean: f64,
    phase: f64,
    delay: i64
) -> Vec<f64>
Deprecated since 0.8.0:

please use Sinusoidal::new instead

Creates a vector of f64 points representing a Sine wave.

Examples

use statrs::generate;

let x = generate::sinusoidal_custom(10, 8.0, 2.0, 1.0, 5.0, 2.0, 1);
assert_eq!(x,
    [5.416146836547142, 5.909297426825682, 4.583853163452858,
    4.090702573174318, 5.416146836547142, 5.909297426825682,
    4.583853163452858, 4.090702573174318, 5.416146836547142,
    5.909297426825682]);