public static class GradientDescentApproximator.CoefficientsSameSign extends java.lang.Object implements GradientDescentApproximator.Constraints
Constructor and Description |
---|
GradientDescentApproximator.CoefficientsSameSign(boolean positive) |
Modifier and Type | Method and Description |
---|---|
GradientDescentApproximator.Constraints |
clone() |
boolean |
correct(float[] coefficients) |
public GradientDescentApproximator.CoefficientsSameSign(boolean positive)
positive
- Sign to force all coefficients topublic 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