示例#1
0
文件: CTRNN.cpp 项目: thomalm/ntnu
void CTRNN::RandomizeCircuitOutput(double lb, double ub, RandomState &rs)
{
	for (int i = 1; i <= size; i++)
    SetNeuronOutput(i, rs.UniformRandom(lb, ub));
}
示例#2
0
文件: CTRNN.cpp 项目: buhrmann/dynmx
void CTRNN::randomizeWeights(double lb, double ub, RandomState &rs)
{
	for (int i = 0; i < size; i++)
		for (int j = 0; j < size; j++)
        setWeight(i, j, rs.UniformRandom(lb, ub));
}
示例#3
0
文件: random.cpp 项目: thomalm/ntnu
double UniformRandom(double min,double max) { return GRS.UniformRandom(min, max);};
示例#4
0
文件: CTRNN.cpp 项目: buhrmann/dynmx
void CTRNN::randomizeOutput(double lb, double ub, RandomState &rs)
{
	for (int i = 0; i < size; i++)
    setOutput(i, rs.UniformRandom(lb, ub));
}