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... | |
This dimension selection policy only selects one single random dimension.
Definition at line 21 of file random_dimension_select.hpp.
|
inline |
Construct the RandomDimensionSelect object with the given number of dimensions.
Definition at line 28 of file random_dimension_select.hpp.
|
inline |
Get the first dimension to select from.
Definition at line 33 of file random_dimension_select.hpp.
References mlpack::math::RandInt().
|
inline |
Get the number of dimensions.
Definition at line 47 of file random_dimension_select.hpp.
|
inline |
Set the number of dimensions.
Definition at line 49 of file random_dimension_select.hpp.
|
inline |
Get the last dimension to select from.
Definition at line 38 of file random_dimension_select.hpp.
|
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.