- Timestamp:
- Dec 17, 2013, 5:11:35 PM (11 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:
- c34336e
- Parents:
- b0ab6ef
- Location:
- tests/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-mfcc.c
rb0ab6ef r5d10ac1 13 13 aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate); 14 14 15 cvec_ set_all_norm(in, 1.);15 cvec_norm_set_all (in, 1.); 16 16 aubio_mfcc_do (o, in, out); 17 17 fvec_print (out); 18 18 19 cvec_ set_all_norm(in, .5);19 cvec_norm_set_all (in, .5); 20 20 aubio_mfcc_do (o, in, out); 21 21 fvec_print (out); -
tests/src/test-cvec.c
rb0ab6ef r5d10ac1 20 20 21 21 // set all vector elements to `0` 22 cvec_ zeros_norm(complex_vector);22 cvec_norm_zeros(complex_vector); 23 23 for ( i = 0; i < complex_vector->length; i++ ) { 24 24 assert( complex_vector->norm[i] == 0. ); … … 28 28 29 29 // set all vector elements to `1` 30 cvec_ ones_norm(complex_vector);30 cvec_norm_ones(complex_vector); 31 31 for ( i = 0; i < complex_vector->length; i++ ) { 32 32 assert( complex_vector->norm[i] == 1. ); … … 36 36 37 37 cvec_zeros(complex_vector); 38 cvec_ zeros_phas(complex_vector);39 cvec_ zeros_norm(complex_vector);40 cvec_ ones_norm(complex_vector);41 cvec_ ones_phas(complex_vector);38 cvec_phas_zeros(complex_vector); 39 cvec_norm_zeros(complex_vector); 40 cvec_norm_ones(complex_vector); 41 cvec_phas_ones(complex_vector); 42 42 cvec_copy(complex_vector, complex_vector); 43 43
Note: See TracChangeset
for help on using the changeset viewer.