|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.Monitor.XyData
Class Name : XyData
Project ref : SPIS project
File name : XyData.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Mar 2, 2004
Modification :
Description : set of (xi,yi) data (usually stored for postprocessing).
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
XyData(java.lang.String name_)
Default constructor with data name |
|
XyData(java.lang.String name_,
FloatScalTable xTable,
FloatScalTable yTable)
Default constructor with full data |
|
XyData(java.lang.String name_,
ScalFunctionOfScal f,
float xMin,
float xMax,
int intervalNb)
Constructor from a function: produces a set of (xi, f(xi)) |
Method Summary | |
void |
addData(float x,
float y)
|
XyData |
computeHistogram(int intervalNb)
Generates and returns the histogram of this set of data (xi, yi): yi is considered as the number of occurences (can be uniformly 1) of the value xi. |
int |
getDataNb()
|
java.lang.String |
getName()
|
float[] |
getXArray()
|
FloatScalTable |
getXTable()
|
float[] |
getYArray()
|
FloatScalTable |
getYTable()
|
void |
setDataNb(int i)
|
void |
setName(java.lang.String string)
|
void |
setXTable(FloatScalTable table)
|
void |
setYTable(FloatScalTable table)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XyData(java.lang.String name_)
public XyData(java.lang.String name_, FloatScalTable xTable, FloatScalTable yTable)
public XyData(java.lang.String name_, ScalFunctionOfScal f, float xMin, float xMax, int intervalNb)
Method Detail |
public XyData computeHistogram(int intervalNb)
intervalNb
- number of steps in the wished histogrampublic void addData(float x, float y)
public float[] getXArray()
public float[] getYArray()
public int getDataNb()
public java.lang.String getName()
public FloatScalTable getXTable()
public FloatScalTable getYTable()
public void setDataNb(int i)
i
- data numberpublic void setName(java.lang.String string)
string
- data namepublic void setXTable(FloatScalTable table)
table
- x tablepublic void setYTable(FloatScalTable table)
table
- y table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |