Package gov.nih.mipav.model.algorithms
Class AlgorithmVOISimplexOpt.CostFunction
java.lang.Object
gov.nih.mipav.model.algorithms.AlgorithmVOISimplexOpt.CostFunction
- All Implemented Interfaces:
AlgorithmOptimizeFunctionBase
- Enclosing class:
AlgorithmVOISimplexOpt
private class AlgorithmVOISimplexOpt.CostFunction
extends Object
implements AlgorithmOptimizeFunctionBase
Class for specifying optimization function for the simplex opt algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecost(double[] x) Calcuated the cost function for a given simplex vertex. cost = intensity sum of errors = sum_i(I[i] - I'[i])doublecost(TransMatrix tMatrix) Deprecated.DOCUMENT ME!doublecost(TransMatrixd tMatrix) Deprecated.DOCUMENT ME!int
-
Constructor Details
-
CostFunction
public CostFunction()Empty constructor.
-
-
Method Details
-
getCostFunction
public int getCostFunction()- Specified by:
getCostFunctionin interfaceAlgorithmOptimizeFunctionBase
-
cost
Deprecated.DOCUMENT ME!Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
costin interfaceAlgorithmOptimizeFunctionBase- Parameters:
tMatrix- the translation matrix- Returns:
- the value of the cost function
-
cost
Deprecated.DOCUMENT ME!Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
costin interfaceAlgorithmOptimizeFunctionBase- Parameters:
tMatrix- the translation matrix- Returns:
- the value of the cost function
-
cost
public double cost(double[] x) Calcuated the cost function for a given simplex vertex. cost = intensity sum of errors = sum_i(I[i] - I'[i])- Specified by:
costin interfaceAlgorithmOptimizeFunctionBase- Parameters:
x- row of p[][] (a simplex vertex)- Returns:
- the value of the cost function
-