fvec_quadratic_peak_mag method

double fvec_quadratic_peak_mag(
  1. Pointer<fvec_t> x,
  2. double p
)

finds magnitude of peak by quadratic interpolation

See Quadratic Interpolation of Spectral Peaks, by Julius O. Smith III

\param x vector to get the magnitude of the interpolated peak position from \param p index of the peak in vector x \return magnitude of interpolated peak

Implementation

double fvec_quadratic_peak_mag(
  ffi.Pointer<fvec_t> x,
  double p,
) {
  return _fvec_quadratic_peak_mag(
    x,
    p,
  );
}