Basic vector algebra operators. Vectors are represented as arrays of doubles. This class was created to support the calculations in the PSO algorithm. This class is thread safe. Contributed by: Geoffroy Noel https://github.com/goffer-looney
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 188.8.131.52 (184.108.40.206)
Thetype exposes the following members.
Initializes a new instance of theclass
v1 = v1 + v2
For each components, reset their value to maxValue if their absolute value exceeds it.
dst = src Copy a vector.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
v = k * v The components of the vector are multiplied by k.
v = k * U(0,1) * v The components of the vector are multiplied by k and a random number. A new random number is generated for each component. Thread-safety depends on Random.nextDouble()
v = -v
|Randomise( Double )|
v = U(0, 0.1)
|Randomise( Double , Double)|
v = U(-1, 1) * maxValue Randomise each component of a vector to [-maxValue, maxValue]. thread-safety depends on Random.nextDouble().
v1 = v1 - v2
Returns a string that represents the current object.(Inherited from Object.)