Changeset 56ef7e1 for src/mathutils.h
- Timestamp:
- Oct 18, 2009, 3:08:59 PM (15 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:
- e5f49af
- Parents:
- 74516f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.h
r74516f7 r56ef7e1 60 60 /** compute the mean of a vector 61 61 62 \param s vector to compute normfrom62 \param s vector to compute mean from 63 63 64 64 \return the mean of v … … 66 66 */ 67 67 smpl_t fvec_mean (fvec_t * s); 68 69 /** compute the mean of a vector channel 70 71 \param s vector to compute mean from 72 \param i channel to compute mean from 73 74 \return the mean of v 75 76 */ 77 smpl_t fvec_mean_channel (fvec_t * s, uint_t i); 68 78 69 79 /** find the max of a vector … … 220 230 */ 221 231 smpl_t fvec_moving_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 222 uint_t pos );232 uint_t pos, uint_t channel); 223 233 224 234 /** apply adaptive threshold to a vector … … 233 243 234 244 */ 235 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre); 245 void fvec_adapt_thres (fvec_t * v, fvec_t * tmp, uint_t post, uint_t pre, 246 uint_t channel); 236 247 237 248 /** returns the median of a vector … … 246 257 247 258 \param v vector to get median from 259 \param channel channel to get median from 248 260 249 261 \return the median of v 250 262 251 263 */ 252 smpl_t fvec_median (fvec_t * v);264 smpl_t fvec_median_channel (fvec_t * v, uint_t channel); 253 265 254 266 /** finds exact peak index by quadratic interpolation*/ 255 smpl_t fvec_quadint (fvec_t * x, uint_t pos, uint_t span);267 smpl_t fvec_quadint (fvec_t * x, uint_t pos, uint_t channel); 256 268 257 269 /** Quadratic interpolation using Lagrange polynomial.
Note: See TracChangeset
for help on using the changeset viewer.