12 #ifndef MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP 13 #define MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP 20 template<
typename ObservationType =
double>
26 splitPoints(splitPoints) { }
33 while (bin < splitPoints.n_elem && value >
splitPoints[bin])
40 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
size_t CalculateDirection(const eT &value) const
The core includes that mlpack expects; standard C++ includes and Armadillo.
FirstShim< T > CreateNVP(T &t, const std::string &name, typename std::enable_if_t< HasSerialize< T >::value > *=0)
Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function.
arma::Col< ObservationType > splitPoints
void Serialize(Archive &ar, const unsigned int)
Serialize the split (save/load the split points).
NumericSplitInfo(const arma::Col< ObservationType > &splitPoints)