|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to a Tuple.
Method Summary | |
void |
addRow()
Should be called after fill is called for the columns. |
double |
columnMax(int column)
|
double |
columnMean(int column)
|
double |
columnMin(int column)
|
String |
columnName(int column)
Gets the name of a column from its index |
double |
columnRms(int column)
|
int |
columns()
Number of columns in ntuple |
Class |
columnType(int column)
Returns the type of the column (maybe a String in C++) |
void |
fill(double[] values)
|
void |
fill(float[] values)
|
void |
fill(int column,
boolean value)
|
void |
fill(int column,
byte value)
|
void |
fill(int column,
char value)
|
void |
fill(int column,
double value)
|
void |
fill(int column,
float value)
|
void |
fill(int column,
int value)
|
void |
fill(int column,
long value)
|
void |
fill(int column,
Object value)
|
void |
fill(int column,
short value)
|
void |
fill(int column,
String value)
|
int |
findColumn(String name)
Convert a name to a column index. |
boolean |
getBoolean(int column)
|
byte |
getByte(int column)
|
char |
getChar(int column)
|
double |
getDouble(int column)
|
float |
getFloat(int column)
|
int |
getInt(int column)
|
long |
getLong(int column)
|
Object |
getObject(int column)
|
short |
getShort(int column)
|
String |
getString(int column)
|
String |
label()
The label for this n-tuple |
boolean |
next()
Positions the cursor at the next row. |
boolean |
project(IHistogram1D histogram,
IEvaluator evaluatorX,
IFilter filter)
Fill an IHistogram1D from the tuple. |
boolean |
project(IHistogram2D histogram,
IEvaluator evaluatorX,
IEvaluator evaluatorY,
IFilter filter)
Fill an IHistogram2D from the tuple. |
boolean |
project(IHistogram3D histogram,
IEvaluator evaluatorX,
IEvaluator evaluatorY,
IEvaluator evaluatorZ,
IFilter filter)
Fill an IHistogram3D from the tuple. |
void |
reset()
Clears all rows from ntuple? |
void |
resetRow()
Clears the current (not yet added) row. |
int |
rows()
The number of rows currently in the ntuple. |
boolean |
skip(int rows)
Skips rows. |
void |
start()
Positions the read cursor immediately before the first row. |
Method Detail |
public String label()
public void fill(int column, double value) throws IllegalArgumentException
public void fill(int column, float value) throws IllegalArgumentException
public void fill(int column, int value) throws IllegalArgumentException
public void fill(int column, short value) throws IllegalArgumentException
public void fill(int column, long value) throws IllegalArgumentException
public void fill(int column, char value) throws IllegalArgumentException
public void fill(int column, byte value) throws IllegalArgumentException
public void fill(int column, boolean value) throws IllegalArgumentException
public void fill(int column, String value) throws IllegalArgumentException
public void fill(int column, Object value) throws IllegalArgumentException
public void fill(double[] values) throws IllegalArgumentException
public void fill(float[] values) throws IllegalArgumentException
public void addRow() throws OutOfStorageException
public void resetRow()
public void reset()
public int rows()
public void start()
public boolean skip(int rows)
rows
- number of rows to skip, greater than 0.public boolean next()
public int findColumn(String name) throws IllegalArgumentException
public double getDouble(int column) throws ClassCastException
public float getFloat(int column) throws ClassCastException
public int getInt(int column) throws ClassCastException
public short getShort(int column) throws ClassCastException
public long getLong(int column) throws ClassCastException
public char getChar(int column) throws ClassCastException
public byte getByte(int column) throws ClassCastException
public boolean getBoolean(int column) throws ClassCastException
public String getString(int column) throws ClassCastException
public Object getObject(int column) throws ClassCastException
public int columns()
public String columnName(int column)
public Class columnType(int column)
public double columnMin(int column)
public double columnMax(int column)
public double columnMean(int column)
public double columnRms(int column)
public boolean project(IHistogram1D histogram, IEvaluator evaluatorX, IFilter filter)
histogram.
- The histogram to fill.evaluator.
- The evaluator object used to compute the value
to be filled in the histogram. The value is computed
from the current row of the tuple.filter.
- The filter object used to accept or not the current row.
If rejected, the histogram is not filled.public boolean project(IHistogram2D histogram, IEvaluator evaluatorX, IEvaluator evaluatorY, IFilter filter)
histogram.
- The histogram to fill.evaluatorX.
- The evaluator object used to compute the "x value"
to be filled in the histogram.evaluatorY.
- The evaluator object used to compute the "y value"
to be filled in the histogram.
Then some : fill(valueX, valueY, 1) is done for each
tuple row.filter.
- The filter object used to accept or not the current row.
If rejected, the histogram is not filled.public boolean project(IHistogram3D histogram, IEvaluator evaluatorX, IEvaluator evaluatorY, IEvaluator evaluatorZ, IFilter filter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |