|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.dataSet.DataStatistics
Constructor Summary | |
DataStatistics(int dimension)
Creates a new instance of DataSetStatistics. |
|
DataStatistics(String[] descriptions)
Creates a new instance of DataSetStatistics. |
Method Summary | |
void |
addEntries(double[] mean,
double[] rms,
double sumw,
double sumw2,
int entries)
Add a set of weighted entries to this DataSetStatistics. |
void |
addEntries(double[] mean,
double[] rms,
int entries)
Add a set of entries to this DataSetStatistics. |
void |
addEntry(double[] x)
Add a new entry to this DataSetStatistics with unit weight. |
void |
addEntry(double[] x,
double w)
Add a weighted entry to this DataSetStatistics. |
String |
description(int coord)
Get the description corresponding to a coordinate. |
int |
dimension()
Get the dimension of the DataStatistics. |
int |
entries()
Get the number of entries in this data set |
double |
equivalentEntries()
Get the equivalent entries for this data set. |
double |
mean(int coord)
Get the mean for a given coordinate. |
void |
removeEntries(double[] mean,
double[] rms,
double sumw,
double sumw2,
int entries)
Remove the information corresponding to a set of weighted entries. |
void |
removeEntries(double[] mean,
double[] rms,
int entries)
Remove the information corresponding to a set of weighted entries. |
void |
removeEntry(double[] x)
Remove an entry from this DataSetStatistics with unit weight. |
void |
removeEntry(double[] x,
double w)
Remove a weighted entry from this DataSetStatistics. |
void |
reset()
Reset all the statistics quantities to zero. |
double |
rms(int coord)
Get the rms for a given coordinate. |
void |
scale(double scaleFactor)
Scale the statistics by a give scaleFactor Rescaling is equivalent to multiplying all the weights by the scale factor. |
void |
setDescription(int coord,
String description)
Set the description for a given coordinate |
void |
setDescription(String[] descriptions)
Set the description for all the coordinates. |
double |
sumOfWeights()
Get the sum of weights for this data set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataStatistics(String[] descriptions)
descriptions
- Is an array specifying the description for each
of the coordinates of this data set.public DataStatistics(int dimension)
dimension
- The dimension, i.e. the number of coordinates
of this data set.Method Detail |
public int dimension()
public void addEntry(double[] x, double w)
x
- The coordinates of the added entry.w
- The corresponding weight.public void addEntry(double[] x)
x
- The coordinates of the added entry.public void removeEntry(double[] x, double w)
x
- The coordinates of the removed entry.w
- The corresponding weight.public void removeEntry(double[] x)
x
- The coordinates of the entry to remove.public void addEntries(double[] mean, double[] rms, double sumw, double sumw2, int entries)
mean
- The mean of the entries to be added.rms
- The rms of the entries to be added.sumw
- The sum of weights of the entries to be added.sumw2
- The sum of weights squared of the entries to be added.entries
- The number of the entries to be added.public void addEntries(double[] mean, double[] rms, int entries)
mean
- The mean of the entries to be added.rms
- The rms of the entries to be added.entries
- The number of the entries to be added.public void removeEntries(double[] mean, double[] rms, double sumw, double sumw2, int entries)
mean
- The mean of the entries to be removed.rms
- The rms of the entries to be removed.sumw
- The sum of weights of the entries to be removed.sumw2
- The sum of weights squared of the entries to be removed.entries
- The number of the entries to be added.public void removeEntries(double[] mean, double[] rms, int entries)
mean
- The mean of the entries to be removed.rms
- The rms of the entries to be removed.entries
- The number of the entries to be added.public double mean(int coord)
coord
- The index of the coordinate.
public double rms(int coord)
coord
- The index of the coordinage;
public double sumOfWeights()
public double equivalentEntries()
public int entries()
public void scale(double scaleFactor)
scaleFactor
- The scaleFactor.public void reset()
public void setDescription(String[] descriptions)
descriptions
- The array containing the description for each coordinate.public void setDescription(int coord, String description)
coord
- The index of the coordinate.description
- The description for the coordinatepublic String description(int coord)
coord
- The coordinate.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |