37 #ifndef SHARK_ALGORITHMS_TRAINERS_NORMALIZEKERNELUNITVARIANCE_H 38 #define SHARK_ALGORITHMS_TRAINERS_NORMALIZEKERNELUNITVARIANCE_H 60 template <
class InputType = RealVector >
70 {
return "NormalizeKernelUnitVariance"; }
97 for(std::size_t j = 0; j < i; ++j){
98 RealMatrix matrixBlock = k(batch, input.
batch(j));
99 m_mean += 2*sum(matrixBlock);
101 RealMatrix matrixBlock = k(batch, batch);
102 m_mean += sum(matrixBlock);
107 double scaling_factor = 1.0 / tm;