|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nengo.math.impl.GradientDescentApproximator.CoefficientsSameSign
public static class GradientDescentApproximator.CoefficientsSameSign
Forces all decoding coefficients to be >= 0.
Constructor Summary | |
---|---|
GradientDescentApproximator.CoefficientsSameSign(boolean positive)
|
Method Summary | |
---|---|
GradientDescentApproximator.Constraints |
clone()
|
boolean |
correct(float[] coefficients)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GradientDescentApproximator.CoefficientsSameSign(boolean positive)
positive
- Sign to force all coefficients toMethod Detail |
---|
public boolean correct(float[] coefficients)
correct
in interface GradientDescentApproximator.Constraints
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)
GradientDescentApproximator.Constraints.correct(float[])
public GradientDescentApproximator.Constraints clone() throws java.lang.CloneNotSupportedException
clone
in interface GradientDescentApproximator.Constraints
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if clone can't be made
|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |