SG++-Doxygen-Documentation
sgpp::datadriven::DataShufflingFunctorSequential Class Reference

A simple shuffling functor for data samples that performs no shuffling at all, i.e. More...

#include <DataShufflingFunctorSequential.hpp>

Inheritance diagram for sgpp::datadriven::DataShufflingFunctorSequential:
sgpp::datadriven::DataShufflingFunctor

Public Member Functions

DataShufflingFunctorclone () const override
 Clone pattern. More...
 
size_t operator() (size_t idx, size_t numSamples) override
 Overload the function-call operator that maps indexes to indexes via a permutation of the entire index set. More...
 
- Public Member Functions inherited from sgpp::datadriven::DataShufflingFunctor
 DataShufflingFunctor ()
 
 DataShufflingFunctor (const DataShufflingFunctor &rhs)=default
 
 DataShufflingFunctor (DataShufflingFunctor &&rhs)=default
 
DataShufflingFunctoroperator= (const DataShufflingFunctor &rhs)=default
 
DataShufflingFunctoroperator= (DataShufflingFunctor &&rhs)=default
 
virtual ~DataShufflingFunctor ()=default
 

Detailed Description

A simple shuffling functor for data samples that performs no shuffling at all, i.e.

the permutation used is the identity itself.

Member Function Documentation

◆ clone()

DataShufflingFunctor * sgpp::datadriven::DataShufflingFunctorSequential::clone ( ) const
overridevirtual

Clone pattern.

Returns
identical copy of this instance

Implements sgpp::datadriven::DataShufflingFunctor.

◆ operator()()

size_t sgpp::datadriven::DataShufflingFunctorSequential::operator() ( size_t  idx,
size_t  numSamples 
)
overridevirtual

Overload the function-call operator that maps indexes to indexes via a permutation of the entire index set.

The permutation used is the identity.

Parameters
idxthe original index
numSamplesthe total number of indexes to permute
Returns
idx the index after the permutation (simply the input)

Implements sgpp::datadriven::DataShufflingFunctor.


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