SG++
sgpp::datadriven::MortonOrder Class Reference

Class for re-arranging Datasets along a Morton order curve. More...

#include <MortonOrder.hpp>

Public Member Functions

const std::vector< size_t > & getPermutation () const
 Access to the permutation vector. More...
 
bool isIdentity () const
 Check if permutation is identity. More...
 
bool isOrdered () const
 Check if Dataset is orderes along Z-Curve. More...
 
 MortonOrder (sgpp::datadriven::Dataset *dataset)
 Generates the permutation according to the given dataset. More...
 
void orderDataset ()
 Re-arrange the Dataset object along Z-Curve. More...
 
void restoreDataset ()
 Restores the original order of the Dataset object. More...
 

Protected Attributes

sgpp::datadriven::Dataset_dataset
 
bool _isIdentity
 
bool _isOrdered
 
std::vector< size_t > permutation
 

Detailed Description

Class for re-arranging Datasets along a Morton order curve.

Constructor & Destructor Documentation

sgpp::datadriven::MortonOrder::MortonOrder ( sgpp::datadriven::Dataset dataset)
explicit

Generates the permutation according to the given dataset.

Constructor. Generates the permuation list on the GPU.

References _dataset, _isIdentity, _isOrdered, sgpp::datadriven::Dataset::getData(), and permutation.

Member Function Documentation

const std::vector< size_t > & sgpp::datadriven::MortonOrder::getPermutation ( ) const

Access to the permutation vector.

References permutation.

bool sgpp::datadriven::MortonOrder::isIdentity ( ) const

Check if permutation is identity.

References _isIdentity.

bool sgpp::datadriven::MortonOrder::isOrdered ( ) const

Check if Dataset is orderes along Z-Curve.

Check if Dataset is ordered.

References _isOrdered.

void sgpp::datadriven::MortonOrder::orderDataset ( )

Re-arrange the Dataset object along Z-Curve.

Re-arrange a Dataset object along Z-Curve inplace.

References _dataset, _isOrdered, sgpp::datadriven::Dataset::getData(), sgpp::datadriven::Dataset::getTargets(), and permutation.

void sgpp::datadriven::MortonOrder::restoreDataset ( )

Restores the original order of the Dataset object.

Restores the original order of a Dataset object inplace.

References _dataset, _isOrdered, sgpp::datadriven::Dataset::getData(), sgpp::datadriven::Dataset::getTargets(), and permutation.

Member Data Documentation

sgpp::datadriven::Dataset* sgpp::datadriven::MortonOrder::_dataset
protected
bool sgpp::datadriven::MortonOrder::_isIdentity
protected

Referenced by isIdentity(), and MortonOrder().

bool sgpp::datadriven::MortonOrder::_isOrdered
protected
std::vector<size_t> sgpp::datadriven::MortonOrder::permutation
protected

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