SG++-Doxygen-Documentation
|
#include <DatasetGenerator.hpp>
Public Member Functions | |
virtual void | createData (size_t offset, size_t size, base::DataMatrix &trainingData, base::DataVector &classes)=0 |
virtual size_t | getDims ()=0 |
virtual double | normal (double mean, double stddev) |
generate normally distributed random variable see http://de.wikipedia.org/wiki/Box-Muller-Methode uses rand(), make sure to call srand yourself More... | |
virtual double | uniform (double a, double b) |
virtual | ~DatasetGenerator () |
|
virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
generate normally distributed random variable see http://de.wikipedia.org/wiki/Box-Muller-Methode uses rand(), make sure to call srand yourself
mean | mean of distribution |
stddev | std deviation of distribution |
References M_PI.
Referenced by sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), and sgpp::datadriven::Friedman3Generator::createData().
|
virtual |