Package gov.nih.mipav.model.algorithms
Class CeresSolver.LineSearchFunction
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.LineSearchFunction
-
- Enclosing class:
- CeresSolver
class CeresSolver.LineSearchFunction extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<java.lang.Double>
direction_
private CeresSolver.Evaluator
evaluator_
private double
initial_evaluator_jacobian_time_in_seconds
private double
initial_evaluator_residual_time_in_seconds
private java.util.Vector<java.lang.Double>
position_
private java.util.Vector<java.lang.Double>
scaled_direction_
-
Constructor Summary
Constructors Constructor Description LineSearchFunction(CeresSolver.Evaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector<java.lang.Double>
direction()
double
DirectionInfinityNorm()
void
Evaluate(double x, boolean evaluate_gradient, CeresSolver.FunctionSample output)
void
Init(double[] position, java.util.Vector<java.lang.Double> direction)
void
Init(java.util.Vector<java.lang.Double> position, java.util.Vector<java.lang.Double> direction)
java.util.Vector<java.lang.Double>
position()
void
ResetTimeStatistics()
void
TimeStatistics(double[] cost_evaluation_time_in_seconds, double[] gradient_evaluation_time_in_seconds)
-
-
-
Field Detail
-
evaluator_
private CeresSolver.Evaluator evaluator_
-
position_
private java.util.Vector<java.lang.Double> position_
-
direction_
private java.util.Vector<java.lang.Double> direction_
-
scaled_direction_
private java.util.Vector<java.lang.Double> scaled_direction_
-
initial_evaluator_residual_time_in_seconds
private double initial_evaluator_residual_time_in_seconds
-
initial_evaluator_jacobian_time_in_seconds
private double initial_evaluator_jacobian_time_in_seconds
-
-
Constructor Detail
-
LineSearchFunction
public LineSearchFunction(CeresSolver.Evaluator evaluator)
-
-
Method Detail
-
Init
public void Init(java.util.Vector<java.lang.Double> position, java.util.Vector<java.lang.Double> direction)
-
Init
public void Init(double[] position, java.util.Vector<java.lang.Double> direction)
-
Evaluate
public void Evaluate(double x, boolean evaluate_gradient, CeresSolver.FunctionSample output)
-
DirectionInfinityNorm
public double DirectionInfinityNorm()
-
ResetTimeStatistics
public void ResetTimeStatistics()
-
TimeStatistics
public void TimeStatistics(double[] cost_evaluation_time_in_seconds, double[] gradient_evaluation_time_in_seconds)
-
position
public java.util.Vector<java.lang.Double> position()
-
direction
public java.util.Vector<java.lang.Double> direction()
-
-