[−][src]Function fastcurve_3d::fast_curve_2d
pub fn fast_curve_2d(x: &Vec<f64>, y: &Vec<f64>, n: u8) -> (Vec<f64>, Vec<f64>)
Returns the tuple of vector points of the smoothed curve The size of the output vector is proportional to the number of smoothening iterations and the initial points
Inputs:
- x = vector of points on x axis
- y = vector of points on y axis
- n = number of smoothening iterations
Outputs:
- x = augmented vector of smoothed points on x axis
- y = augmented vector of smoothed points on y axis