aubio 0.4.9
|
Vector of real-valued data. More...
Go to the source code of this file.
Data Structures | |
struct | fvec_t |
Buffer for real data. More... | |
Functions | |
fvec_t * | new_fvec (uint_t length) |
fvec_t buffer creation function More... | |
void | del_fvec (fvec_t *s) |
fvec_t buffer deletion function More... | |
smpl_t | fvec_get_sample (const fvec_t *s, uint_t position) |
read sample value in a buffer More... | |
void | fvec_set_sample (fvec_t *s, smpl_t data, uint_t position) |
write sample value in a buffer More... | |
smpl_t * | fvec_get_data (const fvec_t *s) |
read data from a buffer More... | |
void | fvec_print (const fvec_t *s) |
print out fvec data More... | |
void | fvec_set_all (fvec_t *s, smpl_t val) |
set all elements to a given value More... | |
void | fvec_zeros (fvec_t *s) |
set all elements to zero More... | |
void | fvec_ones (fvec_t *s) |
set all elements to ones More... | |
void | fvec_rev (fvec_t *s) |
revert order of vector elements More... | |
void | fvec_weight (fvec_t *s, const fvec_t *weight) |
apply weight to vector More... | |
void | fvec_copy (const fvec_t *s, fvec_t *t) |
make a copy of a vector More... | |
void | fvec_weighted_copy (const fvec_t *in, const fvec_t *weight, fvec_t *out) |
make a copy of a vector, applying weights to each element More... | |
Vector of real-valued data.
This file specifies the fvec_t buffer type, which is used throughout aubio to store vector of real-valued smpl_t.
Definition in file fvec.h.
void del_fvec | ( | fvec_t * | s | ) |
fvec_t buffer deletion function
s | buffer to delete as returned by new_fvec() |
read sample value in a buffer
s | vector to read from |
position | sample position to read from |
void fvec_ones | ( | fvec_t * | s | ) |
void fvec_print | ( | const fvec_t * | s | ) |
print out fvec data
s | vector to print out |
void fvec_rev | ( | fvec_t * | s | ) |
revert order of vector elements
s | vector to revert |
set all elements to a given value
s | vector to modify |
val | value to set elements to |
write sample value in a buffer
s | vector to write to |
data | value to write in s->data[position] |
position | sample position to write to |
apply weight to vector
If the weight vector is longer than s, only the first elements are used. If the weight vector is shorter than s, the last elements of s are not weighted.
s | vector to weight |
weight | weighting coefficients |
make a copy of a vector, applying weights to each element
in | input vector |
weight | weights vector |
out | output vector |
void fvec_zeros | ( | fvec_t * | s | ) |
set all elements to zero
s | vector to modify |
fvec_t buffer creation function
length | the length of the buffer to create |