Changes in src/fvec.h [f72364d:c7860af]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.h
rf72364d rc7860af 28 28 /** \file 29 29 30 Vector of real-valued data30 Real buffers 31 31 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 32 This file specifies the fvec_t buffer type, which is used throughout aubio to 33 store real data. 36 34 37 35 */ 38 36 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 */ 37 /** Buffer for real data */ 67 38 typedef struct { 68 uint_t length; /**< length of buffer */69 smpl_t *data; /**< data vector of length ::fvec_t.length*/39 uint_t length; /**< length of buffer */ 40 smpl_t *data; /**< data array of size [length] */ 70 41 } fvec_t; 71 42
Note: See TracChangeset
for help on using the changeset viewer.