[][src]Function statrs::generate::periodic_custom

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

please use Periodic::new instead

Creates a vector of f64 points representing a periodic wave.

Examples

use statrs::generate;

let x = generate::periodic_custom(10, 8.0, 2.0, 10.0, 1.0, 2);
assert_eq!(x, [6.0, 8.5, 1.0, 3.5, 6.0, 8.5, 1.0, 3.5, 6.0, 8.5]);