Пример #1
0
void CTRNN::RandomizeCircuitOutput(double lb, double ub, RandomState &rs)
{
	for (int i = 1; i <= size; i++)
    SetNeuronOutput(i, rs.UniformRandom(lb, ub));
}
Пример #2
0
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
double UniformRandom(double min,double max) { return GRS.UniformRandom(min, max);};
Пример #4
0
void CTRNN::randomizeOutput(double lb, double ub, RandomState &rs)
{
	for (int i = 0; i < size; i++)
    setOutput(i, rs.UniformRandom(lb, ub));
}