hep.aida.ref.histogram
Class Cloud2D
- 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.Cloud2D
-
- All Implemented Interfaces:
- IDevManagedObject, IBaseHistogram, ICloud, ICloud2D, IManagedObject, Connectable, IsObservable, java.io.Serializable
public class Cloud2D extends Cloud implements ICloud2D
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hep.aida.ref.histogram.Cloud
CLOUD_ARRAY_ENTRIES
-
-
Constructor Summary
Constructors Constructor and Description Cloud2D()Create a new Cloud2D
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intconversionBinsX()intconversionBinsY()doubleconversionLowerEdgeX()doubleconversionLowerEdgeY()doubleconversionUpperEdgeX()doubleconversionUpperEdgeY()voidconvert(double[] binEdgesX, double[] binEdgesY)Convert the ICloud to an IHistogram by specifying the bin edges.voidconvert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY)Convert the Cloud to a Histogram.voidconvertToHistogram()Convert the ICloud to an IHistogram using the default number of bins.intentries()Get the Cloud's entries.voidfill(double xValue, double yValue)Fill the Cloud with new values with unit weightvoidfill(double xValue, double yValue, double weight)Fill the Cloud with new values with given weightvoidfillHistogram(IHistogram2D hist2d)Project the ICloud2D on an IHistogram2D.IHistogram2Dhistogram()Get the Histogram representing the CloudbooleanisConverted()Has the Cloud been converted to a Histogram?doublelowerEdgeX()Get the Cloud's x lower edge.doublelowerEdgeXWithMargin()doublelowerEdgeY()Get the Cloud's y lower edge.doublelowerEdgeYWithMargin()doublemeanX()Get the Cloud's x mean.doublemeanY()Get the Cloud's y mean.voidreset()Reset the histogram; as if just created.doublermsX()Get the Cloud's x rms.doublermsY()Get the Cloud's y rms.voidscale(double scaleFactor)Scale the weights by a given factor.voidsetConversionParameters(int binsX, double lowerEdgeX, double upperEdgeX, int binsY, double lowerEdgeY, double upperEdgeY)Set the parameters for the ICloud conversion to an IHistogram.voidsetHistogram(IHistogram2D hist)Set the Histogram representation of the Cloud.voidsetLowerEdgeX(double lowerEdgeX)Set the Cloud's x lower edgevoidsetLowerEdgeY(double lowerEdgeY)Set the Cloud's y lower edgevoidsetUpperEdgeX(double upperEdgeX)Set the Cloud's x upper edgevoidsetUpperEdgeY(double upperEdgeY)Set the Cloud's y upper edgedoublesumOfWeights()Get the sum of weights of of all the entriesdoubleupperEdgeX()Get the Cloud's x upper edge.doubleupperEdgeXWithMargin()doubleupperEdgeY()Get the Cloud's y upper edge.doubleupperEdgeYWithMargin()doublevalueX(int index)Get a given x value from the Cloud.doublevalueY(int index)Get a given y 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 xValue, double yValue)Fill the Cloud with new values with unit weight
-
fill
public void fill(double xValue, double yValue, double weight)Fill the Cloud with new values with given weight
-
lowerEdgeX
public double lowerEdgeX()
Get the Cloud's x lower edge.- Specified by:
lowerEdgeXin interfaceICloud2D- Returns:
- The Cloud's x lower edge.
-
lowerEdgeY
public double lowerEdgeY()
Get the Cloud's y lower edge.- Specified by:
lowerEdgeYin interfaceICloud2D- Returns:
- The Cloud's y lower edge.
-
upperEdgeX
public double upperEdgeX()
Get the Cloud's x upper edge.- Specified by:
upperEdgeXin interfaceICloud2D- Returns:
- The Cloud's x upper edge.
-
upperEdgeY
public double upperEdgeY()
Get the Cloud's y upper edge.- Specified by:
upperEdgeYin interfaceICloud2D- Returns:
- The Cloud's y upper edge.
-
setLowerEdgeX
public void setLowerEdgeX(double lowerEdgeX)
Set the Cloud's x lower edge- Parameters:
lowerEdgeX- The Cloud's x lower edge.
-
setLowerEdgeY
public void setLowerEdgeY(double lowerEdgeY)
Set the Cloud's y lower edge- Parameters:
lowerEdgeY- The Cloud's y lower edge.
-
setUpperEdgeX
public void setUpperEdgeX(double upperEdgeX)
Set the Cloud's x upper edge- Parameters:
upperEdgeX- The Cloud's x upper edge.
-
setUpperEdgeY
public void setUpperEdgeY(double upperEdgeY)
Set the Cloud's y upper edge- Parameters:
upperEdgeY- The Cloud's y upper edge.
-
valueX
public double valueX(int index)
Get a given x value from the Cloud.
-
valueY
public double valueY(int index)
Get a given y value from the Cloud.
-
weight
public double weight(int index)
Get a given weight from the Cloud.
-
meanX
public double meanX()
Get the Cloud's x mean.
-
meanY
public double meanY()
Get the Cloud's y mean.
-
rmsX
public double rmsX()
Get the Cloud's x rms.
-
rmsY
public double rmsY()
Get the Cloud's y 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 nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY)Convert the Cloud to a Histogram.- Specified by:
convertin interfaceICloud2D- Parameters:
nBinsX- The Histogram's x number of bins.lowerEdgeX- The Histogram's x lower edge.upperEdgeX- The Histogram's x upper edge.nBinsY- The Histogram's y number of bins.lowerEdgeY- The Histogram's y lower edge.upperEdgeY- The Histogram's y upper edge.
-
convert
public void convert(double[] binEdgesX, double[] binEdgesY)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 IHistogram2D histogram() throws java.lang.RuntimeException
Get the Histogram representing the Cloud
-
setHistogram
public void setHistogram(IHistogram2D hist)
Set the Histogram representation of the Cloud.- Parameters:
hist- The Histogram representing the Cloud.
-
fillHistogram
public void fillHistogram(IHistogram2D hist2d)
Description copied from interface:ICloud2DProject the ICloud2D on an IHistogram2D.- Specified by:
fillHistogramin interfaceICloud2D- Parameters:
hist2d- The IHistogram2D 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.
-
lowerEdgeXWithMargin
public double lowerEdgeXWithMargin()
-
upperEdgeXWithMargin
public double upperEdgeXWithMargin()
-
lowerEdgeYWithMargin
public double lowerEdgeYWithMargin()
-
upperEdgeYWithMargin
public double upperEdgeYWithMargin()
-
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.
-
setConversionParameters
public void setConversionParameters(int binsX, double lowerEdgeX, double upperEdgeX, int binsY, double lowerEdgeY, double upperEdgeY)Set the parameters for the ICloud conversion to an IHistogram.- Specified by:
setConversionParametersin interfaceICloud2D- Parameters:
binsX- The X axis number of bins of the conversion IHistogram.lowerEdgeX- The X axis lower edge of the conversion IHistogram.upperEdgeX- The X axis upper edge of the conversion IHistogram.binsY- The Y axis number of bins of the conversion IHistogram.lowerEdgeY- The Y axis lower edge of the conversion IHistogram.upperEdgeY- The Y axis upper edge of the conversion IHistogram.
-
conversionBinsX
public int conversionBinsX()
-
conversionLowerEdgeX
public double conversionLowerEdgeX()
-
conversionUpperEdgeX
public double conversionUpperEdgeX()
-
conversionBinsY
public int conversionBinsY()
-
conversionLowerEdgeY
public double conversionLowerEdgeY()
-
conversionUpperEdgeY
public double conversionUpperEdgeY()
-
-
DMelt 3.0 © DataMelt by jWork.ORG