Contains helpers functions. More...
Go to the source code of this file.
Functions | |
| Rcpp::List | valid_err_disp (const valid_err_variant &var) |
| Function to dispacth the error type depending on if cv is performed on one or two parameters, using visitor design pattern. | |
| KO_Traits::StoringVector | from_matrix_to_col (const KO_Traits::StoringMatrix &mat) |
| Function to map a matrix into a column vector, column by column. | |
| KO_Traits::StoringMatrix | from_col_to_matrix (const KO_Traits::StoringVector &col, int rows, int cols) |
| Function to map a column vector into a matrix, column by column. | |
| KO_Traits::StoringVector | add_nans_vec (const KO_Traits::StoringVector &pred, const std::vector< int > &row_ret, int complete_size) |
| Function to add dummy NaNs to the curve/surface. | |
Contains helpers functions.
| KO_Traits::StoringVector add_nans_vec | ( | const KO_Traits::StoringVector & | pred, |
| const std::vector< int > & | row_ret, | ||
| int | complete_size ) |
Function to add dummy NaNs to the curve/surface.
| pred | vector where NaNs have to be added |
| row_ret | vector containing the actual rows that are not dummy NaNs |
| complete_size | size of the returning vector considering also the dummy NaNs |
| KO_Traits::StoringMatrix from_col_to_matrix | ( | const KO_Traits::StoringVector & | col, |
| int | rows, | ||
| int | cols ) |
Function to map a column vector into a matrix, column by column.
| col | vector to be mapped |
| rows | number of rows of the matrix |
| cols | number of columns of the matrix |
| KO_Traits::StoringVector from_matrix_to_col | ( | const KO_Traits::StoringMatrix & | mat | ) |
Function to map a matrix into a column vector, column by column.
| mat | matrix to be mapped |
| Rcpp::List valid_err_disp | ( | const valid_err_variant & | var | ) |
Function to dispacth the error type depending on if cv is performed on one or two parameters, using visitor design pattern.
| var | errors, stored in variant able to represent a vector or a matrix |