15 using uid_range = std::uniform_int_distribution<int>::param_type;
16 using pd_range = std::poisson_distribution<int>::param_type;
20 static std::uniform_int_distribution<int>
rand_uid;
21 static std::uniform_real_distribution<kids_real>
rand_udd;
22 static std::normal_distribution<kids_real>
rand_nd;
23 static std::poisson_distribution<int>
rand_pd;
25 virtual const std::string
getName();
29 static int rand_catalog(
int* res_arr,
int N = 1,
bool reset =
false,
int begin = 0,
int end = 1);
this file provide Kernel class
Kernel_Random manipulation of random engine and numbers.
static int rand_simplex(kids_real *res_arr, int N=1, kids_real constr=1.0f)
static std::normal_distribution< kids_real > rand_nd
normal distribution
static int rand_uniform(kids_real *res_arr, int N=1, kids_real sigma=1.0)
static int rand_gaussian(kids_real *res_arr, int N=1, kids_real sigma=1.0, kids_real mu=0.0)
static int rand_catalog(int *res_arr, int N=1, bool reset=false, int begin=0, int end=1)
std::poisson_distribution< int >::param_type pd_range
static std::poisson_distribution< int > rand_pd
possion distribution
static std::uniform_int_distribution< int > rand_uid
catalog distribution
static int rand_exponent(kids_real *res_arr, int N=1)
virtual void setInputDataSet_impl(std::shared_ptr< DataSet > &DS)
Virtual function to set input data set for the kernel implementation.
virtual int getType() const
Get the type of the kernel.
static std::uniform_real_distribution< kids_real > rand_udd
uniform distribution
virtual const std::string getName()
Get the name of the kernel.
std::uniform_int_distribution< int >::param_type uid_range
virtual Status & initializeKernel_impl(Status &stat)
Virtual function to initialize the kernel implementation.
std::mt19937 rng_t
random number generator type
static int rand_poisson(int *res_arr, int N=1, kids_real lambda=1.0f)
static int rand_sphere(kids_real *res_arr, int N=1, kids_real constr=1.0f)
this class provides the container and implementation of algorithms
< http://warp.povusers.org/FunctionParser/fparser.html
double kids_real
Alias for real number type.