Package gov.nih.mipav.model.algorithms
Class CeresSolver.ParameterBlock
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.ParameterBlock
-
- Enclosing class:
- CeresSolver
class CeresSolver.ParameterBlock extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
delta_offset_
(package private) int
i
(package private) int
index_
(package private) boolean
is_constant_
(package private) int
j
(package private) CeresSolver.LocalParameterization
local_parameterization_
(package private) double[][]
local_parameterization_jacobian_
(package private) double[]
lower_bounds_
(package private) java.util.HashSet<CeresSolver.ResidualBlock>
residual_blocks_
private int
size_
(package private) double[]
state_
(package private) int
state_offset_
(package private) int
state_start
(package private) double[]
upper_bounds_
private double[]
user_state_
-
Constructor Summary
Constructors Constructor Description ParameterBlock(double[] user_state, int size, int index)
ParameterBlock(double[] user_state, int size, int index, CeresSolver.LocalParameterization local_parameterization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
AddResidualBlock(CeresSolver.ResidualBlock residual_block)
int
delta_offset()
(package private) void
EnableResidualBlockDependencies()
boolean
equalsParameterBlock(CeresSolver.ParameterBlock pb)
void
GetState(double[] x, int x_start)
int
index()
(package private) void
Init(double[] user_state, int size, int index, CeresSolver.LocalParameterization local_parameterization)
boolean
IsConstant()
CeresSolver.LocalParameterization
local_parameterization()
double[][]
LocalParameterizationJacobian()
int
LocalSize()
double
LowerBoundForParameter(int index)
CeresSolver.LocalParameterization
mutable_local_parameterization()
java.util.HashSet<CeresSolver.ResidualBlock>
mutable_residual_blocks()
double[]
mutable_user_state()
boolean
Plus(double[] x, double[] delta, double[] x_plus_delta)
boolean
Plus(java.util.Vector<java.lang.Double> x, int x_index, java.util.Vector<java.lang.Double> delta, int delta_index, java.util.Vector<java.lang.Double> x_plus_delta, int x_plus_delta_index)
void
RemoveResidualBlock(CeresSolver.ResidualBlock residual_block)
void
set_delta_offset(int delta_offset)
void
set_index(int index)
void
set_state_offset(int state_offset)
void
SetConstant()
(package private) void
SetLowerBound(int index, double lower_bound)
void
SetParameterization(CeresSolver.LocalParameterization new_parameterization)
boolean
SetState(double[] x, int state_start)
void
SetUpperBound(int index, double upper_bound)
void
SetVarying()
int
Size()
double[]
state()
int
state_offset()
int
state_start()
java.lang.String
StringOutput()
(package private) void
ToString()
(package private) boolean
UpdateLocalParameterizationJacobian()
double
UpperBoundForParameter(int index)
double[]
user_state()
-
-
-
Field Detail
-
i
int i
-
j
int j
-
user_state_
private double[] user_state_
-
size_
private int size_
-
is_constant_
boolean is_constant_
-
local_parameterization_
CeresSolver.LocalParameterization local_parameterization_
-
residual_blocks_
java.util.HashSet<CeresSolver.ResidualBlock> residual_blocks_
-
state_
double[] state_
-
state_start
int state_start
-
local_parameterization_jacobian_
double[][] local_parameterization_jacobian_
-
index_
int index_
-
state_offset_
int state_offset_
-
delta_offset_
int delta_offset_
-
upper_bounds_
double[] upper_bounds_
-
lower_bounds_
double[] lower_bounds_
-
-
Constructor Detail
-
ParameterBlock
public ParameterBlock(double[] user_state, int size, int index)
-
ParameterBlock
public ParameterBlock(double[] user_state, int size, int index, CeresSolver.LocalParameterization local_parameterization)
-
-
Method Detail
-
Size
public int Size()
-
LocalSize
public int LocalSize()
-
SetConstant
public void SetConstant()
-
SetVarying
public void SetVarying()
-
SetParameterization
public void SetParameterization(CeresSolver.LocalParameterization new_parameterization)
-
Init
void Init(double[] user_state, int size, int index, CeresSolver.LocalParameterization local_parameterization)
-
equalsParameterBlock
public boolean equalsParameterBlock(CeresSolver.ParameterBlock pb)
-
UpdateLocalParameterizationJacobian
boolean UpdateLocalParameterizationJacobian()
-
ToString
void ToString()
-
StringOutput
public java.lang.String StringOutput()
-
EnableResidualBlockDependencies
void EnableResidualBlockDependencies()
-
AddResidualBlock
void AddResidualBlock(CeresSolver.ResidualBlock residual_block)
-
IsConstant
public boolean IsConstant()
-
user_state
public double[] user_state()
-
SetState
public boolean SetState(double[] x, int state_start)
-
mutable_user_state
public double[] mutable_user_state()
-
mutable_local_parameterization
public CeresSolver.LocalParameterization mutable_local_parameterization()
-
local_parameterization
public CeresSolver.LocalParameterization local_parameterization()
-
LowerBoundForParameter
public double LowerBoundForParameter(int index)
-
UpperBoundForParameter
public double UpperBoundForParameter(int index)
-
SetUpperBound
public void SetUpperBound(int index, double upper_bound)
-
SetLowerBound
void SetLowerBound(int index, double lower_bound)
-
LocalParameterizationJacobian
public double[][] LocalParameterizationJacobian()
-
index
public int index()
-
set_index
public void set_index(int index)
-
state_offset
public int state_offset()
-
set_state_offset
public void set_state_offset(int state_offset)
-
delta_offset
public int delta_offset()
-
set_delta_offset
public void set_delta_offset(int delta_offset)
-
state
public double[] state()
-
state_start
public int state_start()
-
GetState
public void GetState(double[] x, int x_start)
-
Plus
public boolean Plus(double[] x, double[] delta, double[] x_plus_delta)
-
Plus
public boolean Plus(java.util.Vector<java.lang.Double> x, int x_index, java.util.Vector<java.lang.Double> delta, int delta_index, java.util.Vector<java.lang.Double> x_plus_delta, int x_plus_delta_index)
-
RemoveResidualBlock
public void RemoveResidualBlock(CeresSolver.ResidualBlock residual_block)
-
mutable_residual_blocks
public java.util.HashSet<CeresSolver.ResidualBlock> mutable_residual_blocks()
-
-