hep.aida
Interface ICloud
-
- All Superinterfaces:
- IBaseHistogram
public interface ICloud extends IBaseHistogram
User level interface to a Cloud. A Cloud is an unbinned collection of points. It can be used to represent scatter plots or dynamically rebinnable histograms. If they number of entries in the cloud exceeds some threshold they may be automatically converted to a binned histogram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidconvertToHistogram()Convert the ICloud to an IHistogram using the default number of bins.booleanisConverted()Check if the ICloud has been converted to an IHistogram.intmaxEntries()Get the number of entries after which the cloud will be converted to an IHistogram.voidscale(double scaleFactor)Scale the weights by a given factor.doublesumOfWeights()Get the sum of weights of all the entries.-
Methods inherited from interface hep.aida.IBaseHistogram
annotation, dimension, entries, nanEntries, reset, setTitle, title
-
-
-
-
Method Detail
-
sumOfWeights
double sumOfWeights()
Get the sum of weights of all the entries.- Returns:
- The sum of the weights of all the entries.
-
convertToHistogram
void convertToHistogram() throws AlreadyConvertedExceptionConvert the ICloud to an IHistogram using the default number of bins.- Throws:
AlreadyConvertedException- If the ICloud has already been converted.
-
isConverted
boolean isConverted()
Check if the ICloud has been converted to an IHistogram.- Returns:
trueif it has been converted.
-
maxEntries
int maxEntries()
Get the number of entries after which the cloud will be converted to an IHistogram.- Returns:
- The number of entries.
-
scale
void scale(double scaleFactor) throws java.lang.IllegalArgumentExceptionScale the weights by a given factor.- Parameters:
scaleFactor- The scale factor.- Throws:
java.lang.IllegalArgumentException- If a non-positive scale factor is provided.
-
-
DMelt 3.0 © DataMelt by jWork.ORG