Mercurial > hg > cepstral-pitchtracker
changeset 44:c5cd88de5809
Remove redundant code
author | Chris Cannam |
---|---|
date | Fri, 20 Jul 2012 22:12:29 +0100 |
parents | 53260757fc9f |
children | 8db4a1f096f0 |
files | PeakInterpolator.cpp |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/PeakInterpolator.cpp Fri Jul 20 22:06:15 2012 +0100 +++ b/PeakInterpolator.cpp Fri Jul 20 22:12:29 2012 +0100 @@ -26,19 +26,6 @@ #include <iostream> -static double cubicInterpolate(const double y[4], double x) -{ - double a0 = y[3] - y[2] - y[0] + y[1]; - double a1 = y[0] - y[1] - a0; - double a2 = y[2] - y[0]; - double a3 = y[1]; - return - a0 * x * x * x + - a1 * x * x + - a2 * x + - a3; -} - double PeakInterpolator::findPeakLocation(const double *data, int size) {