#include "utils_tests.h"
int main (void)
{
assert(complex_vector->
length == window_size / 2 + 1);
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 0. );
assert( complex_vector->
phas[i] == 0. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 0. );
assert( complex_vector->
phas[i] == 0. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 1. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 0. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
phas[i] == 1. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
phas[i] == 0. );
}
other_cvector =
new_cvec(window_size + 2);
if (complex_vector)
if (other_cvector)
return 0;
}
Global aubio include file.
void cvec_phas_zeros(cvec_t *s)
set all phase elements to zero
smpl_t * cvec_norm_get_data(const cvec_t *s)
read norm data from a complex buffer
cvec_t * new_cvec(uint_t length)
cvec_t buffer creation function
void cvec_copy(const cvec_t *s, cvec_t *t)
make a copy of a vector
smpl_t * cvec_phas_get_data(const cvec_t *s)
read phase data from a complex buffer
void del_cvec(cvec_t *s)
cvec_t buffer deletion function
void cvec_norm_zeros(cvec_t *s)
set all norm elements to zero
void cvec_norm_ones(cvec_t *s)
set all norm elements to one
void cvec_zeros(cvec_t *s)
set all norm and phas elements to zero
void cvec_phas_ones(cvec_t *s)
set all phase elements to one
smpl_t cvec_norm_get_sample(cvec_t *s, uint_t position)
read norm value from a complex buffer
void cvec_phas_set_sample(cvec_t *s, smpl_t val, uint_t position)
write phase value in a complex buffer
void cvec_norm_set_sample(cvec_t *s, smpl_t val, uint_t position)
write norm value in a complex buffer
smpl_t cvec_phas_get_sample(cvec_t *s, uint_t position)
read phase value from a complex buffer
void cvec_print(const cvec_t *s)
print out cvec data
Vector of real-valued phase and spectrum data.
smpl_t * norm
norm array of size cvec_t.length
smpl_t * phas
phase array of size cvec_t.length
uint_t length
length of buffer = (requested length)/2 + 1
unsigned int uint_t
unsigned integer