return tmp;
}
-smpl_t vec_min(fvec_t *s) {
+smpl_t fvec_min(fvec_t *s) {
uint_t i,j;
smpl_t tmp = s->data[0][0];
for (i=0; i < s->channels; i++)
return tmp;
}
-uint_t vec_min_elem(fvec_t *s) {
+uint_t fvec_min_elem(fvec_t *s) {
uint_t i,j=0, pos=0.;
smpl_t tmp = s->data[0][0];
for (i=0; i < s->channels; i++)
void vec_dc_removal(fvec_t * mag) {
smpl_t mini = 0.;
uint_t length = mag->length, i=0, j;
- mini = vec_min(mag);
+ mini = fvec_min(mag);
for (j=0;j<length;j++) {
mag->data[i][j] -= mini;
}
*
* \bug mono
*/
-smpl_t vec_min(fvec_t *s);
+smpl_t fvec_min(fvec_t *s);
/** returns the index of the min of a vector
*
* \bug mono
*/
-uint_t vec_min_elem(fvec_t *s);
+uint_t fvec_min_elem(fvec_t *s);
/** returns the index of the max of a vector
*
* \bug mono
return vec_quadint(yin,period,1);
}
}
- return vec_quadint(yin,vec_min_elem(yin),1);
+ return vec_quadint(yin,fvec_min_elem(yin),1);
//return 0;
}
tmp += yin->data[0][tau];
yin->data[0][tau] *= tau/tmp;
}
- tau = vec_min_elem(yin);
+ tau = fvec_min_elem(yin);
if (yin->data[0][tau] < tol) {
/* no interpolation */
//return tau;
#include "aubio_priv.h"
#include "fvec.h"
#include "utils/scale.h"
-#include "mathutils.h" //vec_min fvec_max
+#include "mathutils.h" //fvec_min fvec_max
#include "utils/hist.h"
/********
void aubio_hist_dyn_notnull (aubio_hist_t *s, fvec_t *input) {
uint_t i,j;
sint_t tmp = 0;
- smpl_t ilow = vec_min(input);
+ smpl_t ilow = fvec_min(input);
smpl_t ihig = fvec_max(input);
smpl_t step = (ihig-ilow)/(smpl_t)(s->nelems);
smpl_t aubio_unwrap2pi (smpl_t phase);
smpl_t fvec_mean(fvec_t *s);
smpl_t fvec_max(fvec_t *s);
-smpl_t vec_min(fvec_t *s);
-uint_t vec_min_elem(fvec_t *s);
+smpl_t fvec_min(fvec_t *s);
+uint_t fvec_min_elem(fvec_t *s);
uint_t fvec_max_elem(fvec_t *s);
void vec_shift(fvec_t *s);
smpl_t vec_sum(fvec_t *s);
return -1;
}
- if (vec_min (coeffs) != 0.) {
+ if (fvec_min (coeffs) != 0.) {
return -1;
}