src/UCRDTW_kNN_serial.cpp
/// Initial the queue at the beginning step of envelop calculation
Initial the queue at the beginning step of envelop calculation
Initial the queue at the beginning step of envelop calculation
void init(circular_array * d, int capacity)
{
    d->capacity = capacity;
    d->size = 0;
    d->dq = (int *) malloc(sizeof(int) *d->capacity);
    d->f = 0;
    d->r = d->capacity-1;
}
void init ( circular_array * d , int capacity ) { d -> capacity = capacity ; d -> size = 0 ; d -> dq = ( int * ) malloc ( sizeof ( int ) * d -> capacity ) ; d -> f = 0 ; d -> r = d -> capacity - 1 ; }
Initial the queue at the beginning step of envelop calculation
Initial the queue at the beginning step of envelop calculation