![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.estimator.Constraint
public abstract class Constraint
Defines a local solver of a set of constraints.
Constructor Summary | |
---|---|
Constraint(double step)
|
|
Constraint(double step,
double[] scales)
Constructs a vectorial constraint of the form c(x) = 0. |
Method Summary | |
---|---|
abstract double[] |
c(double[] x)
Defines the constraint c(x) = 0. |
double[][] |
C(double[] x)
Defines the gradients of the constraint C(x) = d c(x) / d x. |
double[] |
solve(double[] x0)
Returns the local solution of the constraint so that ||x-x0|| is minimal with c(x) = 0. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Constraint(double step)
public Constraint(double step, double[] scales)
step
- Minimal distance between two distinguishable points.scales
- Vector component scales, default is 1 (uniform precision).Method Detail |
---|
public abstract double[] c(double[] x)
public double[][] C(double[] x)
public double[] solve(double[] x0)