Changes in src/mathutils.h [0683ee2:6f42c16]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.h
r0683ee2 r6f42c16 28 28 */ 29 29 30 #ifndef _AUBIO_MATHUTILS_H31 #define _AUBIO_MATHUTILS_H30 #ifndef AUBIO_MATHUTILS_H 31 #define AUBIO_MATHUTILS_H 32 32 33 33 #include "fvec.h" … … 99 99 */ 100 100 void fvec_shift (fvec_t * v); 101 102 /** swap the left and right halves of a vector 103 104 This function swaps the left part of the signal with the right part of the 105 signal. Therefore 106 107 \f$ a[0], a[1], ..., a[\frac{N}{2}], a[\frac{N}{2}+1], ..., a[N-1], a[N] \f$ 108 109 becomes 110 111 \f$ a[\frac{N}{2}+1], ..., a[N-1], a[N], a[0], a[1], ..., a[\frac{N}{2}] \f$ 112 113 This operation, known as 'ifftshift' in the Matlab Signal Processing Toolbox, 114 can be used after computing the inverse FFT to simplify the phase relationship 115 of the resulting spectrum. See Amalia de Götzen's paper referred to above. 116 117 */ 118 void fvec_ishift (fvec_t * v); 101 119 102 120 /** compute the sum of all elements of a vector … … 233 251 234 252 */ 235 smpl_t fvec_quadratic_peak_pos ( fvec_t * x, uint_t p);253 smpl_t fvec_quadratic_peak_pos (const fvec_t * x, uint_t p); 236 254 237 255 /** finds magnitude of peak by quadratic interpolation … … 276 294 277 295 */ 278 uint_t fvec_peakpick ( fvec_t * v, uint_t p);296 uint_t fvec_peakpick (const fvec_t * v, uint_t p); 279 297 280 298 /** return 1 if a is a power of 2, 0 otherwise */ … … 290 308 291 309 */ 292 void aubio_autocorr ( fvec_t * input, fvec_t * output);310 void aubio_autocorr (const fvec_t * input, fvec_t * output); 293 311 294 312 #ifdef __cplusplus … … 296 314 #endif 297 315 298 #endif /* _AUBIO_MATHUTILS_H */316 #endif /* AUBIO_MATHUTILS_H */
Note: See TracChangeset
for help on using the changeset viewer.