INNER CODE UNIT · C
mu
mlr-org/mlr · todo-files/fda_multires_features.c:21
mu = mu / x_read_len;
/* Rprintf("write to (%i, %i); %i\n", res_write_row, res_write_col, res_write_row + nrow_resmat * res_write_col); */
resmat[res_write_row + nrow_resmat * res_write_col] = mu; // write to resmat
}
// extracts multiresolution features from complete curve
// we shift a window over the curve (by adding an offset) and when done half its size,
// basic features are computed in every window
// the input is matrix x of dim (nrow_x, ncol_x)
// the curve starts in x from cell (x_read_row, x_read_col) and is x_read_len entries long
// the output is written to matrix resmat of dim (nrow_resmat, ncol_resmat)
// the writing starts from resmat cell (res_write_row, res_write_col),
// how many entries are written will be stored in rcounter
// reslev: maximal resolution "level" = so many times (minus 1) the initial window size is halfed
// shift [0,1]: offset for window shifting is shift*window_size
void c_get_curve_features(double* x, unsigned int nrow_x, unsigned int ncol_x,
unsigned int x_read_row, unsigned int x_read_col, unsigned int x_read_len,
double* resmat, unsigned int nrow_resmat, unsigned int ncol_resmat,