comparison src/scalar.c @ 219:eb2ab9b70c29

Correct name for xtract_peak()
author Jamie Bullock <jamie@jamiebullock.com>
date Wed, 04 Jun 2014 14:15:19 +0100
parents 44401945d850
children 611e521cb701
comparison
equal deleted inserted replaced
218:49079e689a89 219:eb2ab9b70c29
1000 } 1000 }
1001 1001
1002 return XTRACT_SUCCESS; 1002 return XTRACT_SUCCESS;
1003 } 1003 }
1004 1004
1005 int xtract_peak_picker(const double *data, const int N, const void *argv, double *result) 1005 int xtract_peak(const double *data, const int N, const void *argv, double *result)
1006 { 1006 {
1007 double threshold = *(double *)argv; 1007 double threshold = *(double *)argv;
1008 double current = data[N - 1]; 1008 double current = data[N - 1];
1009 double average = 0.0; 1009 double average = 0.0;
1010 double maximum = -DBL_MAX; 1010 double maximum = -DBL_MAX;