Belle II Software development
|
Collection of functions related to precision matrices. More...
#include <PrecisionMatrixUtil.h>
Static Public Member Functions | |
template<int N> | |
static PrecisionMatrix< N > | identity () |
Constructs an identity matrix. | |
template<int N> | |
static void | transport (const JacobianMatrix< N, N > &ambiguity, PrecisionMatrix< N > &precision) |
Transport the precision matrix inplace with the given jacobian matrix. | |
template<int M, int N> | |
static PrecisionMatrix< M > | transported (const JacobianMatrix< N, M > &ambiguity, const PrecisionMatrix< N > &precision) |
Return a copy of the precision matrix transported with the given back projection jacobian matrix. | |
template<int N> | |
static void | scale (const ParameterVector< N > &scales, PrecisionMatrix< N > &precision) |
Scale the precision inplace by the given factors in each parameter. | |
template<int N> | |
static PrecisionMatrix< N > | scale (const ParameterVector< N > &scales, const PrecisionMatrix< N > &precision) |
Return a copy of the precision scaled by the given factors in each parameter. | |
template<int N1, int N2> | |
static PrecisionMatrix< N1+N2 > | stackBlocks (const PrecisionMatrix< N1 > &block1, const PrecisionMatrix< N2 > &block2) |
Combines two precision matrices by putting them in two blocks on the diagonal of a larger matrix. | |
template<class APrecisionMatrix , int I = 0, int N = 0> | |
static APrecisionMatrix | getSub (const PrecisionMatrix< N > &precision) |
Gets a subprecision from a precision matrix. | |
template<int N> | |
static double | average (const ParameterVector< N > ¶meter1, const PrecisionMatrix< N > &precision1, const ParameterVector< N > ¶meter2, const PrecisionMatrix< N > &precision2, ParameterVector< N > ¶meter, PrecisionMatrix< N > &precision) |
Averages two parameter vectors taking into account their respective precision. | |
template<int M, int N1, int N2> | |
static double | average (const ParameterVector< N1 > ¶meter1, const PrecisionMatrix< N1 > &precision1, const JacobianMatrix< N1, M > &ambiguity1, const ParameterVector< N2 > ¶meter2, const PrecisionMatrix< N2 > &precision2, const JacobianMatrix< N2, M > &ambiguity2, ParameterVector< M > ¶meter, PrecisionMatrix< M > &precision) |
Averages two parameter vectors from a projected space taking into account their respective precisions and ambiguity matrices. | |
Collection of functions related to precision matrices.
Definition at line 30 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Averages two parameter vectors taking into account their respective precision.
parameter1 | First parameters | |
precision1 | Precision matrix to the first parameters | |
parameter2 | Second parameters | |
precision2 | Precision matrix to the second parameters | |
[out] | parameter | Averaged parameters |
[out] | precision | Averaged precision matrix |
Definition at line 104 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Averages two parameter vectors from a projected space taking into account their respective precisions and ambiguity matrices.
parameter1 | First parameters | |
precision1 | Precision matrix to the first parameters | |
ambiguity1 | Projection ambiguity of the first parameters | |
parameter2 | Second parameters | |
precision2 | Precision matrix to the second parameters | |
ambiguity2 | Projection ambiguity of the second parameters | |
[out] | parameter | Averaged parameters |
[out] | precision | Averaged precision matrix |
Definition at line 146 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Gets a subprecision from a precision matrix.
Definition at line 85 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Constructs an identity matrix.
Definition at line 34 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Return a copy of the precision scaled by the given factors in each parameter.
Definition at line 65 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Scale the precision inplace by the given factors in each parameter.
Definition at line 58 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Combines two precision matrices by putting them in two blocks on the diagonal of a larger matrix.
Definition at line 74 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Transport the precision matrix inplace with the given jacobian matrix.
Definition at line 41 of file PrecisionMatrixUtil.h.
|
inlinestatic |
Return a copy of the precision matrix transported with the given back projection jacobian matrix.
Definition at line 50 of file PrecisionMatrixUtil.h.