Package gov.nih.mipav.model.algorithms
Class CeresSolver.ProgramEvaluator<EvaluatePreparer,JacobianWriter,JacobianFinalizer>
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.Evaluator
-
- gov.nih.mipav.model.algorithms.CeresSolver.ProgramEvaluator<EvaluatePreparer,JacobianWriter,JacobianFinalizer>
-
- Enclosing class:
- CeresSolver
class CeresSolver.ProgramEvaluator<EvaluatePreparer,JacobianWriter,JacobianFinalizer> extends CeresSolver.Evaluator
-
-
Field Summary
Fields Modifier and Type Field Description private EvaluatePreparer[]
evaluate_preparers_
private CeresSolver.EvaluateScratch[]
evaluate_scratch_
private CeresSolver.ExecutionSummary
execution_summary_
private JacobianWriter
jacobian_writer_
private CeresSolver.EvaluatorOptions
options_
private CeresSolver.Program
program_
private java.util.Vector<java.lang.Integer>
residual_layout_
-
Fields inherited from class gov.nih.mipav.model.algorithms.CeresSolver.Evaluator
options
-
-
Constructor Summary
Constructors Constructor Description ProgramEvaluator(JacobianWriter jw, CeresSolver.EvaluatorOptions options, CeresSolver.Program program)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CeresSolver.SparseMatrix
CreateJacobian()
boolean
Evaluate(CeresSolver.EvaluateOptions evaluate_options, double[] state_array, double[] cost, double[] residuals_array, double[] gradient_array, CeresSolver.SparseMatrix jacobian)
boolean
Evaluate(CeresSolver.EvaluateOptions evaluate_options, java.util.Vector<java.lang.Double> state, double[] cost, java.util.Vector<java.lang.Double> residuals, java.util.Vector<java.lang.Double> gradient, CeresSolver.SparseMatrix jacobian)
int
NumEffectiveParameters()
int
NumParameters()
int
NumResiduals()
boolean
Plus(double[] state, double[] delta, double[] state_plus_delta)
boolean
Plus(java.util.Vector<java.lang.Double> state, java.util.Vector<java.lang.Double> delta, java.util.Vector<java.lang.Double> state_plus_delta)
-
Methods inherited from class gov.nih.mipav.model.algorithms.CeresSolver.Evaluator
Evaluate, Statistics
-
-
-
-
Field Detail
-
options_
private CeresSolver.EvaluatorOptions options_
-
program_
private CeresSolver.Program program_
-
jacobian_writer_
private JacobianWriter jacobian_writer_
-
evaluate_preparers_
private EvaluatePreparer[] evaluate_preparers_
-
evaluate_scratch_
private CeresSolver.EvaluateScratch[] evaluate_scratch_
-
residual_layout_
private java.util.Vector<java.lang.Integer> residual_layout_
-
execution_summary_
private CeresSolver.ExecutionSummary execution_summary_
-
-
Constructor Detail
-
ProgramEvaluator
public ProgramEvaluator(JacobianWriter jw, CeresSolver.EvaluatorOptions options, CeresSolver.Program program)
-
-
Method Detail
-
CreateJacobian
public CeresSolver.SparseMatrix CreateJacobian()
- Specified by:
CreateJacobian
in classCeresSolver.Evaluator
-
NumParameters
public int NumParameters()
- Specified by:
NumParameters
in classCeresSolver.Evaluator
-
NumEffectiveParameters
public int NumEffectiveParameters()
- Specified by:
NumEffectiveParameters
in classCeresSolver.Evaluator
-
NumResiduals
public int NumResiduals()
- Specified by:
NumResiduals
in classCeresSolver.Evaluator
-
Plus
public boolean Plus(java.util.Vector<java.lang.Double> state, java.util.Vector<java.lang.Double> delta, java.util.Vector<java.lang.Double> state_plus_delta)
- Specified by:
Plus
in classCeresSolver.Evaluator
-
Plus
public boolean Plus(double[] state, double[] delta, double[] state_plus_delta)
- Specified by:
Plus
in classCeresSolver.Evaluator
-
Evaluate
public boolean Evaluate(CeresSolver.EvaluateOptions evaluate_options, double[] state_array, double[] cost, double[] residuals_array, double[] gradient_array, CeresSolver.SparseMatrix jacobian)
- Specified by:
Evaluate
in classCeresSolver.Evaluator
-
Evaluate
public boolean Evaluate(CeresSolver.EvaluateOptions evaluate_options, java.util.Vector<java.lang.Double> state, double[] cost, java.util.Vector<java.lang.Double> residuals, java.util.Vector<java.lang.Double> gradient, CeresSolver.SparseMatrix jacobian)
- Specified by:
Evaluate
in classCeresSolver.Evaluator
-
-