Package gov.nih.mipav.model.algorithms
Class CeresSolverTest.EvaluatorTest
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolverTest.EvaluatorTest
-
- Enclosing class:
- CeresSolverTest
class CeresSolverTest.EvaluatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description CeresSolverTest.EvaluatorTestOptions
ETOptions
CeresSolver.ProblemImpl
problem
java.lang.String
testName
double[]
x
double[]
y
double[]
z
-
Constructor Summary
Constructors Constructor Description EvaluatorTest(CeresSolverTest.EvaluatorTestOptions ETOptions, java.lang.String testName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
CheckAllEvaluationCombinations(CeresSolverTest.ExpectedEvaluation expected)
CeresSolver.Evaluator
CreateEvaluator(CeresSolver.Program program)
void
EvaluateAndCompare(CeresSolver.ProblemImpl problem, int expected_num_rows, int expected_num_cols, double expected_cost, double[] expected_residuals, double[] expected_gradient, double[] expected_jacobian, boolean[] passed)
void
EvaluatorTestEvaluatorAbortsForResidualsThatFailToEvaluate()
void
EvaluatorTestMultipleResidualProblem()
void
EvaluatorTestMultipleResidualProblemWithSomeConstantParameters()
void
EvaluatorTestMultipleResidualsWithLocalParameterizations()
void
EvaluatorTestSingleResidualProblem()
void
EvaluatorTestSingleResidualProblemWithNuisanceParameters()
void
EvaluatorTestSingleResidualProblemWithPermutedParameters()
-
-
-
Field Detail
-
x
public double[] x
-
y
public double[] y
-
z
public double[] z
-
problem
public CeresSolver.ProblemImpl problem
-
ETOptions
public CeresSolverTest.EvaluatorTestOptions ETOptions
-
testName
public java.lang.String testName
-
-
Constructor Detail
-
EvaluatorTest
public EvaluatorTest(CeresSolverTest.EvaluatorTestOptions ETOptions, java.lang.String testName)
-
-
Method Detail
-
CreateEvaluator
public CeresSolver.Evaluator CreateEvaluator(CeresSolver.Program program)
-
EvaluateAndCompare
public void EvaluateAndCompare(CeresSolver.ProblemImpl problem, int expected_num_rows, int expected_num_cols, double expected_cost, double[] expected_residuals, double[] expected_gradient, double[] expected_jacobian, boolean[] passed)
-
CheckAllEvaluationCombinations
public void CheckAllEvaluationCombinations(CeresSolverTest.ExpectedEvaluation expected)
-
EvaluatorTestSingleResidualProblem
public void EvaluatorTestSingleResidualProblem()
-
EvaluatorTestSingleResidualProblemWithPermutedParameters
public void EvaluatorTestSingleResidualProblemWithPermutedParameters()
-
EvaluatorTestSingleResidualProblemWithNuisanceParameters
public void EvaluatorTestSingleResidualProblemWithNuisanceParameters()
-
EvaluatorTestMultipleResidualProblem
public void EvaluatorTestMultipleResidualProblem()
-
EvaluatorTestMultipleResidualsWithLocalParameterizations
public void EvaluatorTestMultipleResidualsWithLocalParameterizations()
-
EvaluatorTestMultipleResidualProblemWithSomeConstantParameters
public void EvaluatorTestMultipleResidualProblemWithSomeConstantParameters()
-
EvaluatorTestEvaluatorAbortsForResidualsThatFailToEvaluate
public void EvaluatorTestEvaluatorAbortsForResidualsThatFailToEvaluate()
-
-