VectorAlgebra ClampComponents Method Encog Machine Learning Framework for .Net
For each components, reset their value to maxValue if their absolute value exceeds it.

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

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

Parameters

v
Type:  System Double 
an array of doubles
maxValue
Type: System Double
if -1 this function does nothing
See Also