|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.tools.beam.PhaseMatrix
|
+--gov.sns.tools.beam.CorrelationMatrix
A CorrelationMatrix in homogeneous coordinates represents
all momements of a phase space distribution up to and include second order. This is
seen by taken the moment of the outer product of two phase vectors. We find
<z*z'> = | <x*x> <x*xp <x*y> <x*yp> <x*z> <x*zp> <x> |
| <xp*x> <xp*xp> <xp*y> <xp*yp> <xp*z> <xp*zp> <xp> |
| <y*x> <y*xp> <y*y> <y*yp> <y*z> <y*zp> <y> |
| <yp*x> <yp*xp> <yp*y> <yp*yp> <yp*z> <yp*zp> <yp> |
| <z*x> <z*xp> <z*y> <z*yp> <z*z> <z*zp> <z> |
| <zp*x> <zp*xp> <zp*y> <zp*yp> <zp*z> <zp*zp> <zp> |
| <x> <xp> <y> <yp> <z> <zp> <1> |
| Field Summary |
| Fields inherited from class gov.sns.tools.beam.PhaseMatrix |
ATTR_DATA, DIM, IND_HOM, IND_X, IND_XP, IND_Y, IND_YP, IND_Z, IND_ZP |
| Constructor Summary | |
CorrelationMatrix()
Constructor for CorrelationMatrix. |
|
CorrelationMatrix(Jama.Matrix matInit)
Constructor for CorrelationMatrix. |
|
CorrelationMatrix(PhaseMatrix matInit)
Constructor for CorrelationMatrix. |
|
CorrelationMatrix(java.lang.String strTokens)
Constructor for CorrelationMatrix. |
|
| Method Summary | |
static CorrelationMatrix |
buildCorrelation(Twiss twissX,
Twiss twissY,
Twiss twissZ)
Create a PhaseMatrix that is the correlation matrix corresponding to the given Twiss parameters. |
static CorrelationMatrix |
buildCorrelation(Twiss twissX,
Twiss twissY,
Twiss twissZ,
PhaseVector vecMean)
Create a CorrelationMatrix corresponding to the given Twiss parameters and having the given mean values (centroid values). |
CorrelationMatrix |
getCovariance()
Compute and return the covariance matrix of the distribution. |
double |
getCovXX()
Compute and return the covariance value of the xx phase space coordinate monomial. |
double |
getCovXY()
Compute and return the covariance value of the xy phase space coordinate monomial. |
double |
getCovXZ()
Compute and return the covariance value of the xz phase space coordinate monomial. |
double |
getCovYY()
Compute and return the covariance value of the yy phase space coordinate monomial. |
double |
getCovYZ()
Compute and return the covariance value of the yz phase space coordinate monomial. |
double |
getCovZZ()
Compute and return the covariance value of the zz phase space coordinate monomial. |
PhaseVector |
getMean()
Return the phase space coordinates of the centroid in homogeneous coordinates. |
double |
getMeanX()
Return the mean value of the x phase variable. |
double |
getMeanY()
Return the mean value of the y phase variable. |
double |
getMeanZ()
Return the mean value of the z phase variable. |
double |
getSigmaX()
Compute and return the standard deviation of the x phase variable |
double |
getSigmaY()
Compute and return the standard deviation of the y phase variable |
double |
getSigmaZ()
Compute and return the standard deviation of the z phase variable |
static CorrelationMatrix |
newIdentity()
Create an identity correlation matrix |
static CorrelationMatrix |
newZero()
Create a new instance of a zero phase matrix. |
double[] |
rmsEmittances()
Return the x,y,z plane rms emittance of the beam Units: radian-meters NOTE: This method ignores any coupling between phase planes and any offsets of the beam centroid from the beam axis. |
void |
setRmsEmittances(double[] arrEmitNew)
(Re)sets the rms emittances for the beam. |
Twiss[] |
twissParameters()
Return the Twiss parameters for each plane that correspond to the current correlation matrix. |
| Methods inherited from class gov.sns.tools.beam.PhaseMatrix |
compPhaseAdvance, conjugateInv, conjugateTrans, det, equals, getElem, hashCode, identity, inverse, load, main, minus, minusEquals, norm1, norm2, normInf, parse, plus, plusEquals, print, save, setElem, setMatrix, setSubMatrix, times, times, times, timesEquals, timesEquals, toString, transpose, zero |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CorrelationMatrix()
public CorrelationMatrix(PhaseMatrix matInit)
throws java.lang.IllegalArgumentException
PhaseMatrix argument.
matInit - symmetric PhaseMatrix object to initial this
java.lang.IllegalArgumentException - initializing matrix is not symmetric
public CorrelationMatrix(java.lang.String strTokens)
throws java.lang.IllegalArgumentException,
java.lang.NumberFormatException
strTokens - initial values of matrix in Mathematica format
java.lang.IllegalArgumentException - wrong number of token string in argument
java.lang.NumberFormatException - malformatted number in argument stringPhaseMatrix.PhaseMatrix(String)
public CorrelationMatrix(Jama.Matrix matInit)
throws java.lang.IllegalArgumentException
Jama Matrix
object to initialize the correlation matrix.
matInit - symmetric Jama Matrix object for initial value
java.lang.IllegalArgumentException - initializing matrix is not symmetric| Method Detail |
public static CorrelationMatrix newZero()
public static CorrelationMatrix newIdentity()
public static CorrelationMatrix buildCorrelation(Twiss twissX,
Twiss twissY,
Twiss twissZ)
twissX - twiss parameters of the x phase planetwissY - twiss parameters of the y phase planetwissZ - twiss parameters of the z phase plane
public static CorrelationMatrix buildCorrelation(Twiss twissX,
Twiss twissY,
Twiss twissZ,
PhaseVector vecMean)
twissX - twiss parameters of the x phase planetwissY - twiss parameters of the y phase planetwissZ - twiss parameters of the z phase planevecMean - mean value vector of the phase space coordinates, i.e., public void setRmsEmittances(double[] arrEmitNew)
arrEmitNew - three element vector of rms emittances for X,Y,Z planes, respectively
public double getMeanX()
public double getMeanY()
public double getMeanZ()
public PhaseVector getMean()
public double getCovXX()
public double getCovXY()
public double getCovYY()
public double getCovYZ()
public double getCovZZ()
public double getCovXZ()
public double getSigmaX()
public double getSigmaY()
public double getSigmaZ()
public CorrelationMatrix getCovariance()
public double[] rmsEmittances()
public Twiss[] twissParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||