Changeset 8e5c051 for src/mathutils.h
- Timestamp:
- Dec 4, 2009, 1:41:59 AM (14 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- fc61225
- Parents:
- d207300
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.h
rd207300 r8e5c051 41 41 */ 42 42 smpl_t fvec_mean (fvec_t * s); 43 44 /** compute the mean of a vector channel45 46 \param s vector to compute mean from47 \param i channel to compute mean from48 49 \return the mean of v50 51 */52 smpl_t fvec_mean_channel (fvec_t * s, uint_t i);53 43 54 44 /** find the max of a vector … … 205 195 */ 206 196 smpl_t fvec_moving_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 207 uint_t pos , uint_t channel);197 uint_t pos); 208 198 209 199 /** apply adaptive threshold to a vector … … 218 208 219 209 */ 220 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 221 uint_t channel); 210 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre); 222 211 223 212 /** returns the median of a vector … … 232 221 233 222 \param v vector to get median from 234 \param channel channel to get median from235 223 236 224 \return the median of v 237 225 238 226 */ 239 smpl_t fvec_median _channel (fvec_t * v, uint_t channel);227 smpl_t fvec_median (fvec_t * v); 240 228 241 229 /** finds exact peak index by quadratic interpolation*/ 242 smpl_t fvec_quadint (fvec_t * x, uint_t pos , uint_t channel);230 smpl_t fvec_quadint (fvec_t * x, uint_t pos); 243 231 244 232 /** Quadratic interpolation using Lagrange polynomial.
Note: See TracChangeset
for help on using the changeset viewer.