Changeset f72364d for src/fvec.h
 Timestamp:
 Mar 3, 2013, 4:29:36 AM (7 years ago)
 Branches:
 feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
 Children:
 69b11d8
 Parents:
 f9d5346
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/fvec.h
rf9d5346 rf72364d 28 28 /** \file 29 29 30 Real buffers30 Vector of realvalued 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 realvalued ::smpl_t. 34 35 \example testfvec.c 34 36 35 37 */ 36 38 37 /** Buffer for real data */ 39 /** Buffer for real data 40 41 Vector of realvalued data 42 43 ::fvec_t is is the structure used to store vector of realvalued 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.