mlpack
Public Member Functions | List of all members
mlpack::tree::RandomDimensionSelect Class Reference

This dimension selection policy only selects one single random dimension. More...

#include <random_dimension_select.hpp>

Public Member Functions

 RandomDimensionSelect ()
 Construct the RandomDimensionSelect object with the given number of dimensions.
 
size_t Begin () const
 Get the first dimension to select from.
 
size_t End () const
 Get the last dimension to select from.
 
size_t Next () const
 Get the next (last) dimensions. More...
 
size_t Dimensions () const
 Get the number of dimensions.
 
size_t & Dimensions ()
 Set the number of dimensions.
 

Detailed Description

This dimension selection policy only selects one single random dimension.

Member Function Documentation

◆ Next()

size_t mlpack::tree::RandomDimensionSelect::Next ( ) const
inline

Get the next (last) dimensions.

We only allow one dimension, so any 'next' dimension is past our bounds.


The documentation for this class was generated from the following file: