mlpack  3.0.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
RandomDimensionSelect Class Reference

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

Public Member Functions

 RandomDimensionSelect (const size_t dimensions)
 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 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 ( const size_t  dimensions)
inline

Construct the RandomDimensionSelect object with the given number of dimensions.

Definition at line 28 of file random_dimension_select.hpp.

Member Function Documentation

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().

size_t End ( ) const
inline

Get the last dimension to select from.

Definition at line 38 of file random_dimension_select.hpp.

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: