RandomDimensionSelect Class Reference

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

Public Member Functions

 RandomDimensionSelect ()
 Construct the RandomDimensionSelect object with the given number of dimensions. More...

 
size_t Begin () const
 Get the first dimension to select from. 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 dimension to select from. More...

 
size_t Next () const
 Get the next (last) dimensions. More...

 

Detailed Description

This dimension selection policy only selects one single random dimension.

Definition at line 21 of file random_dimension_select.hpp.

Constructor & Destructor Documentation

◆ RandomDimensionSelect()

Construct the RandomDimensionSelect object with the given number of dimensions.

Definition at line 28 of file random_dimension_select.hpp.

Member Function Documentation

◆ Begin()

size_t Begin ( ) const
inline

Get the first dimension to select from.

Definition at line 33 of file random_dimension_select.hpp.

References mlpack::math::RandInt().

◆ Dimensions() [1/2]

size_t Dimensions ( ) const
inline

Get the number of dimensions.

Definition at line 47 of file random_dimension_select.hpp.

◆ Dimensions() [2/2]

size_t& Dimensions ( )
inline

Set the number of dimensions.

Definition at line 49 of file random_dimension_select.hpp.

◆ End()

size_t End ( ) const
inline

Get the last dimension to select from.

Definition at line 38 of file random_dimension_select.hpp.

◆ Next()

size_t Next ( ) const
inline

Get the next (last) dimensions.

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

Definition at line 44 of file random_dimension_select.hpp.


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