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?

Author:
Bryan Tripp

Method Summary
 GradientDescentApproximator.Constraints clone()
           
 boolean correct(float[] coefficients)
           
 

Method Detail

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
Throws:
java.lang.CloneNotSupportedException