MultipleRandomDimensionSelect< NumDimensions > Class Template Reference

This dimension selection policy allows the selection from a few random dimensions. More...

Public Member Functions

 MultipleRandomDimensionSelect (const size_t dimensions)
 Instantiate the MultipleRandomDimensionSelect object. More...

 
size_t Begin ()
 Get the first random value. More...

 
size_t End () const
 Get the last random value. More...

 
size_t Next ()
 Get the next index. More...

 

Detailed Description


template<size_t NumDimensions = 3>
class mlpack::tree::MultipleRandomDimensionSelect< NumDimensions >

This dimension selection policy allows the selection from a few random dimensions.

The number of random dimensions to use is specified by the NumDimensions template parameter.

Template Parameters
NumDimensionsNumber of random dimensions to select.

Definition at line 26 of file multiple_random_dimension_select.hpp.

Constructor & Destructor Documentation

◆ MultipleRandomDimensionSelect()

MultipleRandomDimensionSelect ( const size_t  dimensions)
inline

Instantiate the MultipleRandomDimensionSelect object.

Definition at line 32 of file multiple_random_dimension_select.hpp.

References mlpack::math::RandInt().

Member Function Documentation

◆ Begin()

size_t Begin ( )
inline

Get the first random value.

Definition at line 64 of file multiple_random_dimension_select.hpp.

◆ End()

size_t End ( ) const
inline

Get the last random value.

Definition at line 73 of file multiple_random_dimension_select.hpp.

◆ Next()

size_t Next ( )
inline

Get the next index.

Definition at line 78 of file multiple_random_dimension_select.hpp.


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