aubio 0.4.9
Loading...
Searching...
No Matches
fvec_t Struct Reference

Buffer for real data. More...

#include <fvec.h>

Data Fields

uint_t length
 length of buffer
 
smpl_tdata
 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
del_fvec(a_vector);
fvec_t * new_fvec(uint_t length)
fvec_t buffer creation function
void del_fvec(fvec_t *s)
fvec_t buffer deletion function
Buffer for real data.
Definition fvec.h:67
smpl_t * data
data vector of length fvec_t.length
Definition fvec.h:69
unsigned int uint_t
unsigned integer
Definition types.h:60

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

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.

Field Documentation

◆ data

◆ length

uint_t fvec_t::length

length of buffer

Examples
spectral/test-dct.c, and test-fvec.c.

Definition at line 68 of file fvec.h.


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