aubio  0.4.9
Data Fields
fvec_t Struct Reference

Buffer for real data. More...

#include <fvec.h>

Data Fields

uint_t length
 length of buffer
 data vector of length fvec_t.length

Detailed Description

Buffer for real data.

Vector of real-valued data

fvec_t is is the structure used to store vector of real-valued data, smpl_t .

uint_t buffer_size = 1024;
// create a vector of 512 values
fvec_t * input = new_fvec (buffer_size);
// set some values of the vector
input->data[23] = 2.;
// ..
// compute the mean of the vector
mean = fvec_mean(a_vector);
// destroy the vector

See examples/ and tests/src directories for more examples.

examples/aubionotes.c, examples/aubioonset.c, examples/aubiopitch.c, examples/aubiotrack.c, io/test-sink.c, io/test-source.c, onset/test-onset.c, pitch/test-pitch.c, spectral/test-dct.c, spectral/test-fft.c, spectral/test-filterbank.c, spectral/test-filterbank_mel.c, spectral/test-mfcc.c, spectral/test-phasevoc.c, spectral/test-specdesc.c, spectral/test-tss.c, synth/test-sampler.c, synth/test-wavetable.c, tempo/test-tempo.c, temporal/test-biquad.c, temporal/test-filter.c, test-fmat.c, and test-fvec.c.

Definition at line 67 of file fvec.h.

The documentation for this struct was generated from the following file: