|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.phasespaceanalysis.PhaseSpaceData
This class keeps raw phase space data and can create the ColorSurfaceData instance to show the phase space distribution as a color contour plot.
| Constructor Summary | |
PhaseSpaceData(int dataSizeX,
int dataSizeXP)
The data constructor. |
|
PhaseSpaceData(int dataSizeX,
int dataSizeXP,
java.lang.String dataName)
The data constructor with data name. |
|
| Method Summary | |
void |
addPoint(double x,
double xp)
Adds a raw data point. |
void |
centerData()
Recalculate raw data relative the center point with average X and XP. |
void |
clear()
Deletes all points. |
double |
getCenterX()
Returns the averaged X for the initial raw data. |
double |
getCenterXP()
Returns the averaged XP for the initial raw data. |
ColorSurfaceData |
getColorSurfaceData()
Returns the ColorSurfaceData instance. |
double |
getGridPointX(int i)
Returns the grid point's X for index i. |
double |
getGridPointXP(int i)
Returns the grid point's XP for index i. |
int |
getGridSizeX()
Returns the grid size for analysis in X direction. |
int |
getGridSizeXP()
Returns the grid size for analysis in XP direction. |
double |
getIntegral(PhasePlaneEllipse phPE)
Calculates integral over the phase plane bounded by ellipse. |
double |
getMaxX()
Returns the maximal X value. |
double |
getMaxXP()
Returns the maximal XP value. |
double |
getMinX()
Returns the minimal X value. |
double |
getMinXP()
Returns the minimal XP value. |
PhasePlaneEllipse |
getPhasePlaneEllipse()
Returns the inner PhasePlaneEllipse instance. |
double |
getRawIntegral(PhasePlaneEllipse phPE)
Calculates integral over the phase plane bounded by ellipse. |
int |
getSize()
Returns a number of the raw data points. |
double |
getSShapeCorrelation(PhasePlaneEllipse phPE)
Returns the correlation coefficient calculated on the ellipse. |
double |
getStepX()
Returns the step size for analysis in X direction. |
double |
getStepXP()
Returns the step size for analysis in XP direction. |
double |
getValue(double x,
double xp)
Returns phase space density value for point (x,xp). |
double |
getValue(int i,
int j)
Returns phase space density value for point with indexes i and j. |
double |
getX(int i)
Returns the x-value for index i. |
double |
getXP(int i)
Returns the xp-value for index i. |
void |
makeColorSurfaceData()
Creates contour plot data. |
void |
setGridSizeX(int gridSizeX)
Sets the grid size for analysis in X direction. |
void |
setGridSizeXP(int gridSizeXP)
Sets the grid size for analysis in XP direction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PhaseSpaceData(int dataSizeX,
int dataSizeXP)
public PhaseSpaceData(int dataSizeX,
int dataSizeXP,
java.lang.String dataName)
| Method Detail |
public void setGridSizeX(int gridSizeX)
public void setGridSizeXP(int gridSizeXP)
public int getGridSizeX()
public int getGridSizeXP()
public double getStepX()
public double getStepXP()
public double getGridPointX(int i)
public double getGridPointXP(int i)
public double getValue(double x,
double xp)
public double getValue(int i,
int j)
public void clear()
public int getSize()
public void addPoint(double x,
double xp)
public double getCenterX()
public double getCenterXP()
public double getX(int i)
public double getXP(int i)
public double getMinX()
public double getMaxX()
public double getMinXP()
public double getMaxXP()
public void makeColorSurfaceData()
public ColorSurfaceData getColorSurfaceData()
public void centerData()
public PhasePlaneEllipse getPhasePlaneEllipse()
setPhasePlaneEllipse() .
public double getSShapeCorrelation(PhasePlaneEllipse phPE)
public double getIntegral(PhasePlaneEllipse phPE)
ColorSurfaceData .
public double getRawIntegral(PhasePlaneEllipse phPE)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||