?? random.h
字號:
//
//Please find details of the method from
//
// Q. Zhang, A. Zhou and Y. Jin, "RM-MEDA: A Regularity Model Based Multiobjective Estimation of Distribution Algorithm", IEEE Trans. Evolutionary Computation, Vol. 12, no. 1, pp41-63, 2008.
//
//The source codes are free for reserach work. If you have any problem with the source codes, please contact with
// Qingfu Zhang,
// Department of Computing and Electronic Systems,
// University of Essex,
// Colchester, CO4 3SQ, UK
// http://cswww.essex.ac.uk/staff/zhang
// Email: qzhang@essex.ac.uk
// Aimin Zhou
// Department of Computing and Electronic Systems,
// University of Essex,
// Colchester, CO4 3SQ, UK
// http://privatewww.essex.ac.uk/~azhou/
// Email: azhou@essex.ac.uk or amzhou@gmail.com
//Programmer:
// Aimin Zhou
//Last Update:
// Feb. 21, 2008
//
//Random.h :random generator
//
#ifndef AZ_RANDOM_H
#define AZ_RANDOM_H
//!\brief az namespace, the top namespace
namespace az
{
//!\brief rnd namespace for random generator
namespace rnd
{
//!\brief initialize the random seed
//!\param seeds seeds
//!\return void
void seed( long seeds = 0 );
//!\brief create a real random in (0.0,1.0)
//!\return random number
double rand();
//!\brief create a real random in (low,up) for real number and [low, up) for integer number
//!\param low lower range
//!\param up upper range
//!\return random number
double rand(double low, double up);
//!\brief create a real random in (low,up) for real number and [low, up) for integer number
//!\param low lower range
//!\param up upper range
//!\return random number
int rand(int low, int up);
//!\brief create a real random in (low,up) for real number and [low, up) for integer number
//!\param low lower range
//!\param up upper range
//!\return random number
unsigned int rand(unsigned int low, unsigned int up);
//!\brief create a real Gaussian random with distribution (0.0,1.0)
//!\return random number
double gaussian();
//!\brief create a real number with Triangular distribution
//!\param min lower limit
//!\param max upper limit
//!\param mode most likely value
//!\return random number
double triangular(double min, double max, double mode);
} //namespace rnd
} //namespace az
#endif //AZ_RANDOM_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -