Package gov.nih.mipav.model.algorithms
Class CeresSolver2.CovarianceImpl
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver2.CovarianceImpl
-
- Enclosing class:
- CeresSolver2
class CeresSolver2.CovarianceImpl extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashSet<double[]>
constant_parameter_blocks_
private CeresSolver.CompressedRowSparseMatrix
covariance_matrix_
private CeresSolver.EvaluateOptions
evaluate_options_
private boolean
is_computed_
private boolean
is_valid_
private CeresSolver2.CovarianceOptions
options_
private java.util.HashMap<double[],java.lang.Integer>
parameter_block_to_row_index_
private CeresSolver.ProblemImpl
problem_
-
Constructor Summary
Constructors Constructor Description CovarianceImpl(CeresSolver2.CovarianceOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
CheckForDuplicates(java.util.Vector<double[]> blocks)
boolean
CheckForPairDuplicates(java.util.Vector<CeresSolver.Pair<double[],double[]>> blocks)
boolean
Compute(java.util.Vector<double[]> parameter_blocks, CeresSolver.ProblemImpl problem)
boolean
ComputeCovarianceSparsity(java.util.Vector<CeresSolver.Pair<double[],double[]>> original_covariance_blocks, CeresSolver.ProblemImpl problem)
(package private) boolean
ComputeCovarianceValues()
(package private) boolean
ComputeCovarianceValuesUsingDenseSVD()
CeresSolver.CompressedRowSparseMatrix
covariance_matrix()
boolean
GetCovarianceBlock(double[] parameter_block1, double[] parameter_block2, double[] covariance_block)
boolean
GetCovarianceBlockInTangentOrAmbientSpace(double[] original_parameter_block1, double[] original_parameter_block2, boolean lift_covariance_to_ambient_space, double[] covariance_block)
boolean
GetCovarianceBlockInTangentSpace(double[] parameter_block1, double[] parameter_block2, double[] covariance_block)
boolean
GetCovarianceMatrix(java.util.Vector<double[]> parameter_blocks, double[] covariance_matrix)
boolean
GetCovarianceMatrixInTangentOrAmbientSpace(java.util.Vector<double[]> parameters, boolean lift_covariance_to_ambient_space, double[] covariance_matrix)
boolean
GetCovarianceMatrixInTangentSpace(java.util.Vector<double[]> parameter_blocks, double[] covariance_matrix)
(package private) void
LinearIndexToUpperTriangularIndex(int k, int n, int[] i, int[] j)
boolean
pairCompute(java.util.Vector<CeresSolver.Pair<double[],double[]>> covariance_blocks, CeresSolver.ProblemImpl problem)
-
-
-
Field Detail
-
problem_
private CeresSolver.ProblemImpl problem_
-
options_
private CeresSolver2.CovarianceOptions options_
-
evaluate_options_
private CeresSolver.EvaluateOptions evaluate_options_
-
is_computed_
private boolean is_computed_
-
is_valid_
private boolean is_valid_
-
parameter_block_to_row_index_
private java.util.HashMap<double[],java.lang.Integer> parameter_block_to_row_index_
-
constant_parameter_blocks_
private java.util.HashSet<double[]> constant_parameter_blocks_
-
covariance_matrix_
private CeresSolver.CompressedRowSparseMatrix covariance_matrix_
-
-
Constructor Detail
-
CovarianceImpl
public CovarianceImpl(CeresSolver2.CovarianceOptions options)
-
-
Method Detail
-
covariance_matrix
public CeresSolver.CompressedRowSparseMatrix covariance_matrix()
-
CheckForDuplicates
public boolean CheckForDuplicates(java.util.Vector<double[]> blocks)
-
CheckForPairDuplicates
public boolean CheckForPairDuplicates(java.util.Vector<CeresSolver.Pair<double[],double[]>> blocks)
-
Compute
public boolean Compute(java.util.Vector<double[]> parameter_blocks, CeresSolver.ProblemImpl problem)
-
pairCompute
public boolean pairCompute(java.util.Vector<CeresSolver.Pair<double[],double[]>> covariance_blocks, CeresSolver.ProblemImpl problem)
-
ComputeCovarianceValues
boolean ComputeCovarianceValues()
-
ComputeCovarianceValuesUsingDenseSVD
boolean ComputeCovarianceValuesUsingDenseSVD()
-
ComputeCovarianceSparsity
public boolean ComputeCovarianceSparsity(java.util.Vector<CeresSolver.Pair<double[],double[]>> original_covariance_blocks, CeresSolver.ProblemImpl problem)
-
GetCovarianceBlock
public boolean GetCovarianceBlock(double[] parameter_block1, double[] parameter_block2, double[] covariance_block)
-
GetCovarianceBlockInTangentSpace
public boolean GetCovarianceBlockInTangentSpace(double[] parameter_block1, double[] parameter_block2, double[] covariance_block)
-
GetCovarianceBlockInTangentOrAmbientSpace
public boolean GetCovarianceBlockInTangentOrAmbientSpace(double[] original_parameter_block1, double[] original_parameter_block2, boolean lift_covariance_to_ambient_space, double[] covariance_block)
-
GetCovarianceMatrix
public boolean GetCovarianceMatrix(java.util.Vector<double[]> parameter_blocks, double[] covariance_matrix)
-
GetCovarianceMatrixInTangentSpace
public boolean GetCovarianceMatrixInTangentSpace(java.util.Vector<double[]> parameter_blocks, double[] covariance_matrix)
-
GetCovarianceMatrixInTangentOrAmbientSpace
public boolean GetCovarianceMatrixInTangentOrAmbientSpace(java.util.Vector<double[]> parameters, boolean lift_covariance_to_ambient_space, double[] covariance_matrix)
-
LinearIndexToUpperTriangularIndex
void LinearIndexToUpperTriangularIndex(int k, int n, int[] i, int[] j)
-
-