pub fn derivative_merged(data: &[f64]) -> Vec<f64>
Expand description

Calculates the derivative of a Vector

  • Uses five-point stencil method if more than 4 points are in the vector
  • Otherwise uses other derivative
  • will return a Vector of NaN if data.len() < 2