VectorAlgebra Randomise Method ( Double , Double)Encog Machine Learning Framework for .Net
v = U(-1, 1) * maxValue Randomise each component of a vector to [-maxValue, maxValue]. thread-safety depends on Random.nextDouble().

Namespace: Encog.MathUtil
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax

public void Randomise(
	double[] v,
	double maxValue
)

Parameters

v
Type:  System Double 
an array of doubles
maxValue
Type: System Double
The max value.
See Also