Package gov.nih.mipav.model.algorithms
Class CeresSolver.ResidualBlock
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.ResidualBlock
-
- Enclosing class:
- CeresSolver
class CeresSolver.ResidualBlock extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CeresSolver.CostFunction
cost_function_
private int
index_
private CeresSolver.LossFunction
loss_function_
private CeresSolver.ParameterBlock[]
parameter_blocks_
-
Constructor Summary
Constructors Constructor Description ResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, java.util.Vector<CeresSolver.ParameterBlock> parameter_blocks, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CeresSolver.CostFunction
cost_function()
boolean
Evaluate(boolean apply_loss_function, double[] cost, double[] residuals, double[][] jacobians, double[] scratch)
boolean
Evaluate(boolean apply_loss_function, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset, double[] scratch)
java.lang.String
EvaluationToString(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians)
java.lang.String
EvaluationToString(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
void
InvalidateEvaluation(double[] cost, double[] residuals, double[][] jacobians)
void
InvalidateEvaluation(double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
boolean
IsEvaluationValid(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians)
boolean
IsEvaluationValid(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
CeresSolver.LossFunction
loss_function()
int
NumParameterBlocks()
int
NumResiduals()
int
NumScratchDoublesForEvaluate()
CeresSolver.ParameterBlock[]
parameter_blocks()
java.lang.String
toString()
-
-
-
Field Detail
-
cost_function_
private CeresSolver.CostFunction cost_function_
-
loss_function_
private CeresSolver.LossFunction loss_function_
-
parameter_blocks_
private CeresSolver.ParameterBlock[] parameter_blocks_
-
index_
private int index_
-
-
Constructor Detail
-
ResidualBlock
public ResidualBlock(CeresSolver.CostFunction cost_function, CeresSolver.LossFunction loss_function, java.util.Vector<CeresSolver.ParameterBlock> parameter_blocks, int index)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
NumResiduals
public int NumResiduals()
-
NumParameterBlocks
public int NumParameterBlocks()
-
parameter_blocks
public CeresSolver.ParameterBlock[] parameter_blocks()
-
cost_function
public CeresSolver.CostFunction cost_function()
-
loss_function
public CeresSolver.LossFunction loss_function()
-
NumScratchDoublesForEvaluate
public int NumScratchDoublesForEvaluate()
-
Evaluate
public boolean Evaluate(boolean apply_loss_function, double[] cost, double[] residuals, double[][] jacobians, double[] scratch)
-
Evaluate
public boolean Evaluate(boolean apply_loss_function, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset, double[] scratch)
-
InvalidateEvaluation
public void InvalidateEvaluation(double[] cost, double[] residuals, double[][] jacobians)
-
InvalidateEvaluation
public void InvalidateEvaluation(double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
-
IsEvaluationValid
public boolean IsEvaluationValid(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians)
-
IsEvaluationValid
public boolean IsEvaluationValid(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
-
EvaluationToString
public java.lang.String EvaluationToString(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians)
-
EvaluationToString
public java.lang.String EvaluationToString(java.util.Vector<double[]> parameters, double[] cost, double[] residuals, double[][] jacobians, int[] jacobians_offset)
-
-