|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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 correct| Method Detail |
|---|
public double evaluateFunction(double[] x)
throws DimensionException
Functionx.
x - the current vector
DimensionException - if dim(x) != n, with 
public double[] evaluateGradientOfFunction(double[] x)
throws DimensionException
DifferentiableFunctionx, i.e.,
.
evaluateGradientOfFunction in class DifferentiableFunctionx - the current vector
Function.getDimensionOfScope()
DimensionException - if dim(x) != n, with 
Function.getDimensionOfScope()public int getDimensionOfScope()
FunctionFunction.
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 | |||||||||