public enum PHASEPLANE extends java.lang.Enum<PHASEPLANE>
PhaseMatrix
,
CorrelationMatrix
Enum Constant and Description |
---|
HOR
Horizontal phase plane
|
LNG
Longitudinal phase plane
|
VER
Vertical phase plane
|
Modifier and Type | Method and Description |
---|---|
static CovarianceMatrix |
constructCovariance(Jama.Matrix vecMmtsHor,
Jama.Matrix vecMmtsVer,
Jama.Matrix vecMmtsLng)
Packs the second moments in the three vectors into a properly formatted
covariance matrix.
|
double |
extractBeamSize(Measurement msmt)
Returns the beam size field corresponding to this phase plane from the given
measurement data structure.
|
Jama.Matrix |
extractCovarianceVector(CovarianceMatrix matCov)
Extracts the (3) moments for the given phase plane from the covariance matrix
and return them as a 3 × 1 vector.
|
CovarianceMatrix |
getCovarianceBasis(int indBasis)
Returns the covariance basis matrix for the given index.
|
int |
getCovariantBasisSize()
Returns the cardinality of the covariance basis set.
|
int |
getCovIndexOffset()
Returns the index offset into the covariance matrix for this phase plane.
|
PhaseMatrix |
getStandardBasis(int indBasis)
Returns the standard basis matrix for the given index.
|
int |
getStandardBasisSize()
Returns the cardinality of the standard basis set.
|
static PHASEPLANE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PHASEPLANE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PHASEPLANE HOR
public static final PHASEPLANE VER
public static final PHASEPLANE LNG
public static PHASEPLANE[] values()
for (PHASEPLANE c : PHASEPLANE.values()) System.out.println(c);
public static PHASEPLANE valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CovarianceMatrix constructCovariance(Jama.Matrix vecMmtsHor, Jama.Matrix vecMmtsVer, Jama.Matrix vecMmtsLng)
vecMmtsHor
- vector of horizontal second momentsvecMmtsVer
- vector of vertical second momentsvecMmtsLng
- vector of longitudinal second momentspublic int getCovIndexOffset()
public int getStandardBasisSize()
public PhaseMatrix getStandardBasis(int indBasis) throws java.lang.ArrayIndexOutOfBoundsException
Returns the standard basis matrix for the given index. There are four of these matrices for each phase plane. They provide an independent vector representation of the 4×4 diagonal block occupied by this phase space within phase matrices. Restricting to one block diagonal we have
e0 | ≡ | | 1 0 | |
| 0 0 | |
e1 | ≡ | | 0 1 | |
| 0 0 | |
e2 | ≡ | | 0 0 | |
| 1 0 | |
e3 | ≡ | | 0 0 | |
| 0 1 | |
indBasis
- The index of the basis vectorjava.lang.ArrayIndexOutOfBoundsException
- The given index is greater than 3public int getCovariantBasisSize()
public CovarianceMatrix getCovarianceBasis(int indBasis) throws java.lang.ArrayIndexOutOfBoundsException
Returns the covariance basis matrix for the given index. There are three of these matrices for each phase plane. They provide a vector representation of the 4×4 block diagonal of the covariance matrix occupied by this phase plane. Because of the symmetry of the covariance matrix, there are only three independent basis vectors. Restricting attention to one block diagonal we have
c0 | ≡ | | 1 0 | |
| 0 0 | |
c1 | ≡ | | 0 1 | |
| 1 0 | |
c2 | ≡ | | 0 0 | |
| 0 1 | |
indBasis
- The index of the basis vectorjava.lang.ArrayIndexOutOfBoundsException
- The given index is greater than 3public double extractBeamSize(Measurement msmt)
msmt
- data structure of beam size measurements for each phase planepublic Jama.Matrix extractCovarianceVector(CovarianceMatrix matCov)
matCov
- the covariance matrix containing all the first and second order moments