mlpack
Functions
utils.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename VecType , typename WeightVecType >
void WeightedSum (const VecType &values, const WeightVecType &weights, const size_t begin, const size_t end, double &accWeights, double &weightedMean)
 Calculates the weighted sum and total weight of labels.
 
template<typename VecType >
void Sum (const VecType &values, const size_t begin, const size_t end, double &mean)
 Sums up the labels vector.
 

Detailed Description

Author
Rishabh Garg

Various utility functions used in decision tree implementation.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.