|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.histogram.AbstractBaseHistogram
hep.aida.ref.histogram.Cloud
hep.aida.ref.histogram.Cloud1D
public class Cloud1D
| Field Summary |
|---|
| Fields inherited from class hep.aida.ref.histogram.Cloud |
|---|
CLOUD_ARRAY_ENTRIES |
| Constructor Summary | |
|---|---|
Cloud1D()
Create a new Cloud1D |
|
| Method Summary | |
|---|---|
int |
conversionBins()
|
double |
conversionLowerEdge()
|
double |
conversionUpperEdge()
|
void |
convert(double[] binEdges)
Convert the ICloud to an IHistogram by specifying the bin edges. |
void |
convert(int nBins,
double lowerEdge,
double upperEdge)
Convert the ICloud to an IHistogram. |
void |
convertToHistogram()
Convert the ICloud to an IHistogram using the default number of bins. |
int |
entries()
Get the Cloud's entries. |
void |
fill(double value)
Fill the Cloud with a new value with unit weight |
void |
fill(double value,
double weight)
Fill the Cloud with a new value with given weight |
void |
fillHistogram(IHistogram1D hist1d)
Project the ICloud1D on an IHistogram1D. |
IHistogram1D |
histogram()
Get the Histogram representing the Cloud |
boolean |
isConverted()
Has the Cloud been converted to a Histogram? |
double |
lowerEdge()
Get the Cloud's lower edge. |
double |
lowerEdgeWithMargin()
|
double |
mean()
Get the Cloud's mean. |
void |
reset()
Reset the histogram; as if just created. |
double |
rms()
Get the Cloud's rms. |
void |
scale(double scaleFactor)
Scale the weights by a given factor. |
void |
setConversionParameters(int bins,
double lowerEdge,
double upperEdge)
Set the parameters for the ICloud conversion to an IHistogram. |
void |
setHistogram(IHistogram1D hist)
Set the Histogram representation of the Cloud. |
void |
setLowerEdge(double lowerEdge)
Set the Cloud's lower edge |
void |
setUpperEdge(double upperEdge)
Set the Cloud's upper edge |
double |
sumOfWeights()
Get the sum of weights of of all the entries |
double |
upperEdge()
Get the Cloud's upper edge. |
double |
upperEdgeWithMargin()
|
double |
value(int index)
Get a given value from the Cloud. |
double |
weight(int index)
Get a given weight from the Cloud. |
| Methods inherited from class hep.aida.ref.histogram.Cloud |
|---|
getOptions, initCloud, maxEntries, nanEntries |
| Methods inherited from class hep.aida.ref.histogram.AbstractBaseHistogram |
|---|
annotation, dimension, mapBinNumber, setAnnotation, setTitle, title |
| Methods inherited from class hep.aida.ref.ManagedObject |
|---|
isFillable, name, setFillable, setName, type, typeForClass |
| Methods inherited from class hep.aida.ref.event.AIDAObservable |
|---|
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hep.aida.ICloud |
|---|
maxEntries |
| Methods inherited from interface hep.aida.IBaseHistogram |
|---|
annotation, dimension, nanEntries, setTitle, title |
| Methods inherited from interface hep.aida.ref.event.IsObservable |
|---|
addListener, removeAllListeners, removeListener, setValid |
| Methods inherited from interface hep.aida.ref.event.Connectable |
|---|
isConnected, setConnected |
| Constructor Detail |
|---|
public Cloud1D()
| Method Detail |
|---|
public void fill(double value)
fill in interface ICloud1Dvalue - The value to add to the Cloud.
public void fill(double value,
double weight)
fill in interface ICloud1Dvalue - The value to add to the Cloud.weight - The value's weight.public double lowerEdge()
lowerEdge in interface ICloud1Dpublic double upperEdge()
upperEdge in interface ICloud1Dpublic void setUpperEdge(double upperEdge)
upperEdge - The Cloud's upper edge.public void setLowerEdge(double lowerEdge)
lowerEdge - The Cloud's lower edge.public double value(int index)
value in interface ICloud1Dindex - The value's index.
RuntimeException - if the Cloud has been convertedpublic double weight(int index)
weight in interface ICloud1Dindex - The weight's index.
RuntimeException - if the Cloud has been convertedpublic double mean()
mean in interface ICloud1Dpublic double rms()
rms in interface ICloud1Dpublic int entries()
entries in interface IBaseHistogramentries in class AbstractBaseHistogram
public void convert(int nBins,
double lowerEdge,
double upperEdge)
convert in interface ICloud1DnBins - The number of bins.lowerEdge - The lower edge.upperEdge - The upper edge.public void convert(double[] binEdges)
convert in interface ICloud1DbinEdges - The bins edges.public boolean isConverted()
isConverted in interface ICloudisConverted in class Cloudtrue<\code> if the Cloud has been converted to a Histogram.
public IHistogram1D histogram()
throws RuntimeException
histogram in interface ICloud1DRuntimeException - if the histogram is not auto-convertible and "convert"
has not been called.public void setHistogram(IHistogram1D hist)
hist - The Histogram representing the Cloud.public void fillHistogram(IHistogram1D hist1d)
ICloud1D
fillHistogram in interface ICloud1Dhist1d - The IHistogram1D to be filled.public void reset()
Cloud
reset in interface IBaseHistogramreset in class Cloudpublic void convertToHistogram()
Cloud
convertToHistogram in interface ICloudconvertToHistogram in class Cloud
public void scale(double scaleFactor)
throws IllegalArgumentException
Cloud
scale in interface ICloudscale in class CloudscaleFactor - The scale factor.
IllegalArgumentException - If a non-positive scale factor is provided.public double sumOfWeights()
sumOfWeights in interface ICloudsumOfWeights in class Cloudpublic double lowerEdgeWithMargin()
public double upperEdgeWithMargin()
public void setConversionParameters(int bins,
double lowerEdge,
double upperEdge)
setConversionParameters in interface ICloud1Dbins - The number of bins of the conversion IHistogram.lowerEdge - The lower edge of the conversion IHistogram.upperEdge - The upper edge of the conversion IHistogram.public int conversionBins()
public double conversionLowerEdge()
public double conversionUpperEdge()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||