Changeset 5c4ec3c for src/mathutils.h


Ignore:
Timestamp:
Oct 2, 2009, 1:19:10 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
38e9732
Parents:
2f64b0e
Message:

src/mathutils.{c,h}: rename all vec_ to fvec_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.h

    r2f64b0e r5c4ec3c  
    9797 * a[n/2+1],...a[n],a[0]...,a[n/2]
    9898 */
    99 void vec_shift(fvec_t *s);
     99void fvec_shift(fvec_t *s);
    100100/** returns sum */
    101 smpl_t vec_sum(fvec_t *s);
     101smpl_t fvec_sum(fvec_t *s);
    102102
    103103/** returns energy
     
    105105 * \bug mono
    106106 */
    107 smpl_t vec_local_energy(fvec_t * f);
     107smpl_t fvec_local_energy(fvec_t * f);
    108108/** returns High Frequency Energy Content
    109109 *
    110110 * \bug mono */
    111 smpl_t vec_local_hfc(fvec_t * f);
     111smpl_t fvec_local_hfc(fvec_t * f);
    112112/** return alpha norm.
    113113 *
     
    119119 * \bug should not use POW :(
    120120 */
    121 smpl_t vec_alpha_norm(fvec_t * DF, smpl_t alpha);
     121smpl_t fvec_alpha_norm(fvec_t * DF, smpl_t alpha);
    122122/**  dc(min) removal */
    123 void vec_dc_removal(fvec_t * mag);
     123void fvec_dc_removal(fvec_t * mag);
    124124/**  alpha normalisation */
    125 void vec_alpha_normalise(fvec_t * mag, uint_t alpha);
     125void fvec_alpha_normalise(fvec_t * mag, uint_t alpha);
    126126/** add a constant to all members of a vector */
    127 void vec_add(fvec_t * mag, smpl_t threshold);
     127void fvec_add(fvec_t * mag, smpl_t threshold);
    128128
    129129/** compute adaptive threshold of input vector */
    130 void vec_adapt_thres(fvec_t * vec, fvec_t * tmp,
     130void fvec_adapt_thres(fvec_t * vec, fvec_t * tmp,
    131131    uint_t win_post, uint_t win_pre);
    132132/**  adaptative thresholding
     
    149149 * see SPARMS for explanation of post and pre
    150150 */
    151 smpl_t vec_moving_thres(fvec_t * vec, fvec_t * tmp,
     151smpl_t fvec_moving_thres(fvec_t * vec, fvec_t * tmp,
    152152    uint_t win_post, uint_t win_pre, uint_t win_pos);
    153153
     
    161161 *  available at http://ndevilla.free.fr/median/median/
    162162 */
    163 smpl_t vec_median(fvec_t * input);
     163smpl_t fvec_median(fvec_t * input);
    164164
    165165/** finds exact peak index by quadratic interpolation*/
    166 smpl_t vec_quadint(fvec_t * x, uint_t pos, uint_t span);
     166smpl_t fvec_quadint(fvec_t * x, uint_t pos, uint_t span);
    167167
    168168/** Quadratic interpolation using Lagrange polynomial.
     
    179179
    180180/** returns 1 if X1 is a peak and positive */
    181 uint_t vec_peakpick(fvec_t * input, uint_t pos);
     181uint_t fvec_peakpick(fvec_t * input, uint_t pos);
    182182
    183183/** convert frequency bin to midi value */
Note: See TracChangeset for help on using the changeset viewer.