Changes in src/mathutils.h [8e5c051:83963b3]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.h
r8e5c051 r83963b3 41 41 */ 42 42 smpl_t fvec_mean (fvec_t * s); 43 44 /** compute the mean of a vector channel 45 46 \param s vector to compute mean from 47 \param i channel to compute mean from 48 49 \return the mean of v 50 51 */ 52 smpl_t fvec_mean_channel (fvec_t * s, uint_t i); 43 53 44 54 /** find the max of a vector … … 195 205 */ 196 206 smpl_t fvec_moving_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 197 uint_t pos );207 uint_t pos, uint_t channel); 198 208 199 209 /** apply adaptive threshold to a vector … … 208 218 209 219 */ 210 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre); 220 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 221 uint_t channel); 211 222 212 223 /** returns the median of a vector … … 221 232 222 233 \param v vector to get median from 234 \param channel channel to get median from 223 235 224 236 \return the median of v 225 237 226 238 */ 227 smpl_t fvec_median (fvec_t * v);239 smpl_t fvec_median_channel (fvec_t * v, uint_t channel); 228 240 229 241 /** finds exact peak index by quadratic interpolation*/ 230 smpl_t fvec_quadint (fvec_t * x, uint_t pos );242 smpl_t fvec_quadint (fvec_t * x, uint_t pos, uint_t channel); 231 243 232 244 /** Quadratic interpolation using Lagrange polynomial.
Note: See TracChangeset
for help on using the changeset viewer.