14 #ifndef __MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP 15 #define __MLPACK_METHODS_HOEFFDING_TREES_NUMERIC_SPLIT_INFO_HPP 22 template<
typename ObservationType =
double>
28 splitPoints(splitPoints) { }
35 while (bin < splitPoints.n_elem && value >
splitPoints[bin])
42 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
FirstShim< T > CreateNVP(T &t, const std::string &name, typename boost::enable_if< HasSerialize< T >>::type *=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.
size_t CalculateDirection(const eT &value) const
arma::Col< ObservationType > splitPoints
void Serialize(Archive &ar, const unsigned int)
Serialize the split (save/load the split points).
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
NumericSplitInfo(const arma::Col< ObservationType > &splitPoints)