public class DataArray3D extends LinePars
Constructor and Description |
---|
DataArray3D()
Default constructor, initializes the class with nothing.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double dx,
double y,
double dy,
double z,
double dz)
Adds the values of a plot-point pair (x,y,z).
|
void |
clear()
Clears the current array.
|
ArrayList |
getData()
Return the data vector
|
double |
getDX(int i)
Return a specific DX-value.
|
double |
getDY(int i)
Return a specific DY-value.
|
double |
getDZ(int i)
Return a specific DZ-value.
|
LinePars |
getLinePars()
Get the drawing style parameters at once.
|
double |
getLowestNonZeroValue(int axis)
Returns the lowest, but non-zero value in the range.
|
double |
getMaxValue(int axis)
Returns the maximum value in the range.
|
double |
getMinValue(int axis)
Returns the minimum value in the range.
|
PlotPoint3D |
getPoint(int i)
Returns the plot-point of the specified index.
|
String |
getTitle()
Get the title if any
|
double |
getX(int i)
Return a specific X-value.
|
double |
getY(int i)
Return a specific Y-value.
|
double |
getZ(int i)
Return a specific Z-value.
|
double |
meanX() |
double |
meanY() |
double |
meanZ() |
boolean |
parse(BufferedReader in)
Read DataArray from BufferedReader
|
boolean |
parse(File file)
Get data from a file
|
void |
print()
Print a data container on the screen
|
void |
setLinePars(LinePars l)
Sets the drawing style parameters at once.
|
void |
setPoint(int i,
double x,
double dx,
double y,
double dy,
double z,
double dz)
Sets the values of a plot-point pair (x,y).
|
int |
size()
Return the length of the data vector.
|
void |
sort(boolean ascending)
Sorts the arrays in ascending or descending order.
|
void |
toFile(String name,
String title)
Write a DataArray to an external file.
|
void |
updateMean(double x,
double y,
double z)
Updates Mean values.
|
void |
updateMinMax(double x,
double y,
double z)
Updates maximum and minimum values.
|
copy, dataChanged, drawLegend, drawLine, drawSymbol, errorsFill, errorsFillSys, errorsSysX, errorsSysY, errorsX, errorsY, fill, fill, getAdditioner, getAttributes, getColor, getColorErrorsFill, getColorErrorsFillSys, getColorErrorsSysX, getColorErrorsSysY, getColorErrorsX, getColorErrorsY, getColorIndex, getDashIndex, getDashLength, getEndColor, getErrorFillColorTransp, getErrorFillColorTranspSys, getErrorsFill, getErrorsFillSys, getErrorsSysX, getErrorsSysY, getErrorsX, getErrorsY, getErrTicSize, getFillColor, getFillColorTransparency, getGraphStyle, getMultiplier, getName, getNameX, getNameY, getNameZ, getPenWidth, getPenWidthErr, getPenWidthErrSys, getPointFrequency, getSettings, getStartColor, getSymbol, getSymbolSize, getType, getWidthBin, isBarShown, isDrawLine, isDrawSymbol, nextColor, print, setAdditioner, setColor, setColor, setColorErrorsFill, setColorErrorsFillSys, setColorErrorsSysX, setColorErrorsSysY, setColorErrorsX, setColorErrorsY, setDashLength, setDashLength, setDataChanged, setDrawLegend, setDrawLine, setDrawSymbol, setErrorFillColorTransp, setErrorFillColorTranspSys, setErrTicSize, setFillColor, setFillColorTransparency, setGraphStyle, setMultiplier, setName, setNameX, setNameY, setNameZ, setPenWidth, setPenWidthErr, setPenWidthErrSys, setPointFrequency, setShowBars, setSlideColor, setSlideColor, setSymbol, setSymbolSize, setType, setWidthBin, slideColor, updateSettings
public DataArray3D()
public void updateMinMax(double x, double y, double z)
x
- just entered x-value of the pointy
- just entered y-value of the pointz
- just entered z-value of the pointpublic void updateMean(double x, double y, double z)
x
- just entered x-value of the pointy
- just entered y-value of the pointz
- just entered y-value of the pointpublic double meanX()
public double meanY()
public double meanZ()
public void addPoint(double x, double dx, double y, double dy, double z, double dz)
x
- x-value of the plot-pointdx
- dx extention in xy
- y-value of the plot-pointdy
- dy extention in yz
- z-value of the plot-pointdz
- dz extention in zpublic void setPoint(int i, double x, double dx, double y, double dy, double z, double dz)
i
- index of the plot-pointx
- x-value of the plot-pointdx
- dx extention in xy
- y-value of the plot-pointdy
- dy extention in yz
- z-value of the plot-pointdz
- dz extention in zpublic PlotPoint3D getPoint(int i)
i
- index of the plot-pointpublic int size()
public ArrayList getData()
public double getX(int i)
i
- index of the arraypublic double getDX(int i)
i
- index of the arraypublic double getY(int i)
i
- index of the arraypublic double getDY(int i)
i
- index of the arraypublic double getZ(int i)
i
- index of the arraypublic double getDZ(int i)
i
- index of the arraypublic double getMaxValue(int axis)
axis
- defines to which axis this function applies. 0-x, 1-y, 2-zpublic double getMinValue(int axis)
axis
- defines to which axis this function applies.public double getLowestNonZeroValue(int axis)
axis
- defines to which axis this function applies.public void setLinePars(LinePars l)
l
- line and point drawing parameters.public LinePars getLinePars()
public void clear()
public void sort(boolean ascending)
ascending
- true if we should sort from small to largepublic void toFile(String name, String title)
name
- File name with outputtitle
- Titlepublic String getTitle()
public boolean parse(File file)
file
- public boolean parse(BufferedReader in)
in
- BufferedReaderJas4pp 1.5 © Java Analysis Studio for Particle Physics