PPCKO: Principal Predictive Components for Estimating an Autoregressive Operator
 
Loading...
Searching...
No Matches
cv_eval_valid_err.hpp File Reference

Containing the definitions of the different ways of evaluating the validation error. More...

#include <algorithm>
#include <numeric>
#include "traits_ko.hpp"

Go to the source code of this file.

Functions

template<typename T>
double mse (const KO_Traits::StoringVector &diff, int number_threads)
 Template function for the estimate of the L2 norm.
 

Detailed Description

Containing the definitions of the different ways of evaluating the validation error.

Author
Andrea Enrico Franzoni

Function Documentation

◆ mse()

template<typename T>
double mse ( const KO_Traits::StoringVector & diff,
int number_threads )

Template function for the estimate of the L2 norm.

Template Parameters
Ttype of the data
Parameters
diffvector containing the differences
number_threadsnumber of threads for OMP
Returns
the L2 norm of 'diff'
Note
eventual usage of 'pragma' directive for OMP