SG++
sgpp::datadriven::SequentialShufflingFunctor Class Reference

Sequential Shuffling does not permute indices at all and thus keeps their order unchanged. More...

#include <SequentialShufflingFunctor.hpp>

Inheritance diagram for sgpp::datadriven::SequentialShufflingFunctor:
sgpp::datadriven::ShufflingFunctor

Public Member Functions

ShufflingFunctorclone () const override
 Polymorphic clone pattern. More...
 
void shuffle (const Dataset &data, std::vector< size_t > &indices) override
 Does not permute indices and just returns the same permutation passed as a parameter. More...
 
- Public Member Functions inherited from sgpp::datadriven::ShufflingFunctor
int64_t getSeed () const
 Get random seed for randomized operations. More...
 
ShufflingFunctoroperator= (const ShufflingFunctor &rhs)=default
 
ShufflingFunctoroperator= (ShufflingFunctor &&rhs)=default
 
void setSeed (int64_t seed)
 Set random seed for randomized operations. More...
 
 ShufflingFunctor ()
 
 ShufflingFunctor (const ShufflingFunctor &rhs)=default
 
 ShufflingFunctor (ShufflingFunctor &&rhs)=default
 
virtual ~ShufflingFunctor ()=default
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::datadriven::ShufflingFunctor
std::mt19937 generator
 Pseudo random number generator required for shuffling. More...
 
int64_t seed
 Random seed for a pseudo random number generator. More...
 

Detailed Description

Sequential Shuffling does not permute indices at all and thus keeps their order unchanged.

To be used on datasets that are already arranged in the desired manner.

Member Function Documentation

ShufflingFunctor * sgpp::datadriven::SequentialShufflingFunctor::clone ( ) const
overridevirtual

Polymorphic clone pattern.

Returns
deep copy of this object. New object is owned by caller.

Implements sgpp::datadriven::ShufflingFunctor.

void sgpp::datadriven::SequentialShufflingFunctor::shuffle ( const Dataset data,
std::vector< size_t > &  indices 
)
overridevirtual

Does not permute indices and just returns the same permutation passed as a parameter.

To be used on datasets that are already arranged as desired.

Parameters
dataDataset to be permuted.
indicesvector of indices to permute.

Implements sgpp::datadriven::ShufflingFunctor.


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