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 java.lang.Object implements AlgorithmOptimizeFunctionBase
Class for specifying optimization function for the simplex opt algorithm.
-
-
Constructor Summary
Constructors Constructor Description CostFunction()
Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
cost(double[] x)
Calcuated the cost function for a given simplex vertex. cost = intensity sum of errors = sum_i(I[i] - I'[i])double
cost(TransMatrix tMatrix)
Deprecated.DOCUMENT ME!double
cost(TransMatrixd tMatrix)
Deprecated.DOCUMENT ME!int
getCostFunction()
-
-
-
Method Detail
-
getCostFunction
public int getCostFunction()
- Specified by:
getCostFunction
in interfaceAlgorithmOptimizeFunctionBase
-
cost
public double cost(TransMatrix tMatrix)
Deprecated.DOCUMENT ME!Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
cost
in interfaceAlgorithmOptimizeFunctionBase
- Parameters:
tMatrix
- the translation matrix- Returns:
- the value of the cost function
-
cost
public double cost(TransMatrixd tMatrix)
Deprecated.DOCUMENT ME!Filler to implement cost functions from AlgorithmOptimizeFunctionBase.- Specified by:
cost
in 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:
cost
in interfaceAlgorithmOptimizeFunctionBase
- Parameters:
x
- row of p[][] (a simplex vertex)- Returns:
- the value of the cost function
-
-