Package gov.nih.mipav.model.algorithms
Class CeresSolver.LinearCostFunction
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.CostFunction
-
- gov.nih.mipav.model.algorithms.CeresSolver.LinearCostFunction
-
- Enclosing class:
- CeresSolver
class CeresSolver.LinearCostFunction extends CeresSolver.CostFunction
Helper cost function that multiplies the parameters by the given jacobians and adds a constant offset.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Integer,Jama.Matrix>
jacobian_offsets_
private java.util.Vector<Jama.Matrix>
residual_J_params_
private java.util.Vector<java.lang.Double>
residuals_offset_
-
Fields inherited from class gov.nih.mipav.model.algorithms.CeresSolver.CostFunction
parameter_block_sizes_
-
-
Constructor Summary
Constructors Constructor Description LinearCostFunction(java.util.Vector<java.lang.Double> residuals_offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddParameter(Jama.Matrix residual_J_param, java.lang.String testName, boolean[] passed)
boolean
Evaluate(double[][] parameter_ptrs, double[] residuals_ptr)
boolean
Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, double[][] residual_J_params)
boolean
Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, double[][] residual_J_params, int[] jacobian_offsets)
boolean
Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, java.util.Vector<Jama.Matrix> residual_J_params)
void
SetJacobianOffset(int index, Jama.Matrix offset, java.lang.String testName, boolean[] passed)
-
Methods inherited from class gov.nih.mipav.model.algorithms.CeresSolver.CostFunction
AddParameterBlock, finalize, mutable_parameter_block_sizes, num_residuals, parameter_block_sizes, set_num_residuals, set_parameter_block_sizes, SetNumResiduals
-
-
-
-
Method Detail
-
Evaluate
public boolean Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, java.util.Vector<Jama.Matrix> residual_J_params)
-
Evaluate
public boolean Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, double[][] residual_J_params)
- Overrides:
Evaluate
in classCeresSolver.CostFunction
-
Evaluate
public boolean Evaluate(java.util.Vector<double[]> parameter_ptrs, double[] residuals_ptr, double[][] residual_J_params, int[] jacobian_offsets)
- Overrides:
Evaluate
in classCeresSolver.CostFunction
-
Evaluate
public boolean Evaluate(double[][] parameter_ptrs, double[] residuals_ptr)
-
AddParameter
public void AddParameter(Jama.Matrix residual_J_param, java.lang.String testName, boolean[] passed)
-
SetJacobianOffset
public void SetJacobianOffset(int index, Jama.Matrix offset, java.lang.String testName, boolean[] passed)
-
-