MultipleRandomDimensionSelect Class Reference

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

Public Member Functions

 MultipleRandomDimensionSelect (const size_t numDimensions=0)
 Instantiate the MultipleRandomDimensionSelect object. More...

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

 
size_t Dimensions () const
 Get the number of dimensions. More...

 
size_t & Dimensions ()
 Set the number of dimensions. More...

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

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

 

Detailed Description

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

The number of random dimensions to use is specified in the constructor.

Definition at line 23 of file multiple_random_dimension_select.hpp.

Constructor & Destructor Documentation

◆ MultipleRandomDimensionSelect()

MultipleRandomDimensionSelect ( const size_t  numDimensions = 0)
inline

Instantiate the MultipleRandomDimensionSelect object.

Parameters
numDimensionsNumber of random dimensions to try for each split.

Definition at line 31 of file multiple_random_dimension_select.hpp.

Member Function Documentation

◆ Begin()

size_t Begin ( )
inline

Get the first random value.

Definition at line 40 of file multiple_random_dimension_select.hpp.

References mlpack::math::RandInt().

◆ Dimensions() [1/2]

size_t Dimensions ( ) const
inline

Get the number of dimensions.

Definition at line 93 of file multiple_random_dimension_select.hpp.

◆ Dimensions() [2/2]

size_t& Dimensions ( )
inline

Set the number of dimensions.

Definition at line 95 of file multiple_random_dimension_select.hpp.

◆ End()

size_t End ( ) const
inline

Get the last random value.

Definition at line 82 of file multiple_random_dimension_select.hpp.

◆ Next()

size_t Next ( )
inline

Get the next index.

Definition at line 87 of file multiple_random_dimension_select.hpp.


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