|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jstacs.algorithms.optimization.DifferentiableFunction de.jstacs.sequenceScores.statisticalModels.trainable.discrete.inhomogeneous.MEMTools.DualFunction
public static class MEMTools.DualFunction
The dual function to the constraint problem of learning MEM's.
Constructor Summary | |
---|---|
MEMTools.DualFunction(SequenceIterator it,
MEMConstraint[] constraints)
The constructor of a dual function. |
Method Summary | |
---|---|
double |
evaluateFunction(double[] x)
Evaluates the function at a certain vector (in mathematical sense) x . |
double[] |
evaluateGradientOfFunction(double[] x)
Evaluates the gradient of a function at a certain vector (in mathematical sense) x , i.e.,
. |
int |
getDimensionOfScope()
Returns the dimension of the scope of the Function . |
void |
setValues(double[] x)
This method set the values of the Lagrange multiplicators of the constraints |
Methods inherited from class de.jstacs.algorithms.optimization.DifferentiableFunction |
---|
findOneDimensionalMin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MEMTools.DualFunction(SequenceIterator it, MEMConstraint[] constraints)
it
- the correct initialized SequenceIteratorconstraints
- the constraints used in this MEMTools.DualFunction
IllegalArgumentException
- if the constraints are not correctMethod Detail |
---|
public double evaluateFunction(double[] x) throws DimensionException
Function
x
.
x
- the current vector
DimensionException
- if dim(x) != n
, with public double[] evaluateGradientOfFunction(double[] x) throws DimensionException
DifferentiableFunction
x
, i.e.,
.
evaluateGradientOfFunction
in class DifferentiableFunction
x
- the current vector
Function.getDimensionOfScope()
DimensionException
- if dim(x) != n
, with Function.getDimensionOfScope()
public int getDimensionOfScope()
Function
Function
.
n
with
public void setValues(double[] x)
x
- the new values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |