Changes in src/fvec.h [c7860af:f72364d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.h
rc7860af rf72364d 28 28 /** \file 29 29 30 Real buffers30 Vector of real-valued data 31 31 32 This file specifies the fvec_t buffer type, which is used throughout aubio to 33 store real data. 32 This file specifies the ::fvec_t buffer type, which is used throughout aubio 33 to store vector of real-valued ::smpl_t. 34 35 \example test-fvec.c 34 36 35 37 */ 36 38 37 /** Buffer for real data */ 39 /** Buffer for real data 40 41 Vector of real-valued data 42 43 ::fvec_t is is the structure used to store vector of real-valued data, ::smpl_t . 44 45 \code 46 47 uint_t buffer_size = 1024; 48 49 // create a vector of 512 values 50 fvec_t * input = new_fvec (buffer_size); 51 52 // set some values of the vector 53 input->data[23] = 2.; 54 // .. 55 56 // compute the mean of the vector 57 mean = fvec_mean(a_vector); 58 59 // destroy the vector 60 del_fvec(a_vector); 61 62 \endcode 63 64 See `examples/` and `tests/src` directories for more examples. 65 66 */ 38 67 typedef struct { 39 uint_t length; 40 smpl_t *data; /**< data array of size [length]*/68 uint_t length; /**< length of buffer */ 69 smpl_t *data; /**< data vector of length ::fvec_t.length */ 41 70 } fvec_t; 42 71
Note: See TracChangeset
for help on using the changeset viewer.