ca.nengo.math.impl
Interface GradientDescentApproximator.Constraints
- All Superinterfaces:
- java.lang.Cloneable, java.io.Serializable
- All Known Implementing Classes:
- GradientDescentApproximator.CoefficientsSameSign
- Enclosing class:
- GradientDescentApproximator
public static interface GradientDescentApproximator.Constraints
- extends java.io.Serializable, java.lang.Cloneable
Enforces constraints on coefficients.
TODO: should this be generalized to LinearApproximator?
correct
boolean correct(float[] coefficients)
- Parameters:
coefficients
- A set of coefficients which may violate constraints (they
are altered as little as possible by this method so that they satisfy
constraints after the call)
- Returns:
- True if all coefficients had to be corrected (no further improvement
is possible in the attempted direction)
clone
GradientDescentApproximator.Constraints clone()
throws java.lang.CloneNotSupportedException
- Returns:
- Valid clone
- Throws:
java.lang.CloneNotSupportedException
- if clone can't be made