hep.aida.ref.histogram
Class Cloud1D
- java.lang.Object
-
- hep.aida.ref.event.AIDAObservable
-
- hep.aida.ref.ManagedObject
-
- hep.aida.ref.histogram.AbstractBaseHistogram
-
- hep.aida.ref.histogram.Cloud
-
- hep.aida.ref.histogram.Cloud1D
-
- All Implemented Interfaces:
- IDevManagedObject, IBaseHistogram, ICloud, ICloud1D, IManagedObject, Connectable, IsObservable, java.io.Serializable
public class Cloud1D extends Cloud implements ICloud1D
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hep.aida.ref.histogram.Cloud
CLOUD_ARRAY_ENTRIES
-
-
Constructor Summary
Constructors Constructor and Description Cloud1D()Create a new Cloud1D
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intconversionBins()doubleconversionLowerEdge()doubleconversionUpperEdge()voidconvert(double[] binEdges)Convert the ICloud to an IHistogram by specifying the bin edges.voidconvert(int nBins, double lowerEdge, double upperEdge)Convert the ICloud to an IHistogram.voidconvertToHistogram()Convert the ICloud to an IHistogram using the default number of bins.intentries()Get the Cloud's entries.voidfill(double value)Fill the Cloud with a new value with unit weightvoidfill(double value, double weight)Fill the Cloud with a new value with given weightvoidfillHistogram(IHistogram1D hist1d)Project the ICloud1D on an IHistogram1D.IHistogram1Dhistogram()Get the Histogram representing the CloudbooleanisConverted()Has the Cloud been converted to a Histogram?doublelowerEdge()Get the Cloud's lower edge.doublelowerEdgeWithMargin()doublemean()Get the Cloud's mean.voidreset()Reset the histogram; as if just created.doublerms()Get the Cloud's rms.voidscale(double scaleFactor)Scale the weights by a given factor.voidsetConversionParameters(int bins, double lowerEdge, double upperEdge)Set the parameters for the ICloud conversion to an IHistogram.voidsetHistogram(IHistogram1D hist)Set the Histogram representation of the Cloud.voidsetLowerEdge(double lowerEdge)Set the Cloud's lower edgevoidsetUpperEdge(double upperEdge)Set the Cloud's upper edgedoublesumOfWeights()Get the sum of weights of of all the entriesdoubleupperEdge()Get the Cloud's upper edge.doubleupperEdgeWithMargin()doublevalue(int index)Get a given value from the Cloud.doubleweight(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
-
-
-
-
Method Detail
-
fill
public void fill(double value)
Fill the Cloud with a new value with unit weight
-
fill
public void fill(double value, double weight)Fill the Cloud with a new value with given weight
-
lowerEdge
public double lowerEdge()
Get the Cloud's lower edge.
-
upperEdge
public double upperEdge()
Get the Cloud's upper edge.
-
setUpperEdge
public void setUpperEdge(double upperEdge)
Set the Cloud's upper edge- Parameters:
upperEdge- The Cloud's upper edge.
-
setLowerEdge
public void setLowerEdge(double lowerEdge)
Set the Cloud's lower edge- Parameters:
lowerEdge- The Cloud's lower edge.
-
value
public double value(int index)
Get a given value from the Cloud.
-
weight
public double weight(int index)
Get a given weight from the Cloud.
-
mean
public double mean()
Get the Cloud's mean.
-
rms
public double rms()
Get the Cloud's rms.
-
entries
public int entries()
Get the Cloud's entries.- Specified by:
entriesin interfaceIBaseHistogram- Specified by:
entriesin classAbstractBaseHistogram- Returns:
- The Cloud's entries.
-
convert
public void convert(int nBins, double lowerEdge, double upperEdge)Convert the ICloud to an IHistogram.
-
convert
public void convert(double[] binEdges)
Convert the ICloud to an IHistogram by specifying the bin edges.
-
isConverted
public boolean isConverted()
Has the Cloud been converted to a Histogram?- Specified by:
isConvertedin interfaceICloud- Specified by:
isConvertedin classCloud- Returns:
true<\code> if the Cloud has been converted to a Histogram.
-
histogram
public IHistogram1D histogram() throws java.lang.RuntimeException
Get the Histogram representing the Cloud
-
setHistogram
public void setHistogram(IHistogram1D hist)
Set the Histogram representation of the Cloud.- Parameters:
hist- The Histogram representing the Cloud.
-
fillHistogram
public void fillHistogram(IHistogram1D hist1d)
Description copied from interface:ICloud1DProject the ICloud1D on an IHistogram1D.- Specified by:
fillHistogramin interfaceICloud1D- Parameters:
hist1d- The IHistogram1D to be filled.
-
reset
public void reset()
Description copied from class:CloudReset the histogram; as if just created.- Specified by:
resetin interfaceIBaseHistogram- Overrides:
resetin classCloud
-
convertToHistogram
public void convertToHistogram()
Description copied from class:CloudConvert the ICloud to an IHistogram using the default number of bins.- Specified by:
convertToHistogramin interfaceICloud- Specified by:
convertToHistogramin classCloud
-
scale
public void scale(double scaleFactor) throws java.lang.IllegalArgumentExceptionDescription copied from class:CloudScale the weights by a given factor.
-
sumOfWeights
public double sumOfWeights()
Get the sum of weights of of all the entries- Specified by:
sumOfWeightsin interfaceICloud- Specified by:
sumOfWeightsin classCloud- Returns:
- The sum of the weights of all the entries.
-
lowerEdgeWithMargin
public double lowerEdgeWithMargin()
-
upperEdgeWithMargin
public double upperEdgeWithMargin()
-
setConversionParameters
public void setConversionParameters(int bins, double lowerEdge, double upperEdge)Set the parameters for the ICloud conversion to an IHistogram.- Specified by:
setConversionParametersin interfaceICloud1D- Parameters:
bins- The number of bins of the conversion IHistogram.lowerEdge- The lower edge of the conversion IHistogram.upperEdge- The upper edge of the conversion IHistogram.
-
conversionBins
public int conversionBins()
-
conversionLowerEdge
public double conversionLowerEdge()
-
conversionUpperEdge
public double conversionUpperEdge()
-
-
DMelt 3.0 © DataMelt by jWork.ORG