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 Details

    • CostFunction

      public CostFunction()
      Empty constructor.
  • Method Details

    • getCostFunction

      public int getCostFunction()
      Specified by:
      getCostFunction in interface AlgorithmOptimizeFunctionBase
    • cost

      public double cost(TransMatrix tMatrix)
      Deprecated.
      DOCUMENT ME!
      Filler to implement cost functions from AlgorithmOptimizeFunctionBase.
      Specified by:
      cost in interface AlgorithmOptimizeFunctionBase
      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 interface AlgorithmOptimizeFunctionBase
      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 interface AlgorithmOptimizeFunctionBase
      Parameters:
      x - row of p[][] (a simplex vertex)
      Returns:
      the value of the cost function