|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.DrawOptions
jhplot.H2D
public class H2D
Main class to create a 2D histogram. Based on JAIDA class Histogram2D. You can use more method for H2D histogram, but you should use get() method to access Histogram2D histogram
Constructor Summary | |
---|---|
H2D(Histogram2D h1)
Create a H2D histogram from JAIDA histogram |
|
H2D(java.lang.String title,
hep.aida.IAxis xAx,
hep.aida.IAxis yAy)
Define H2D in terms of axis |
|
H2D(java.lang.String title,
int binsX,
double minX,
double maxX,
int binsY,
double minY,
double maxY)
Create 2D histogram |
|
H2D(hep.io.root.interfaces.TH2 h2t)
Create H2D histogram from JAIDA TH1 histogram class |
Method Summary | |
---|---|
int |
allEntries()
Get number of all entries |
int |
binEntries(int indexX,
int indexY)
Number of entries in the corresponding bin (i.e. |
double |
binError(int indexX,
int indexY)
Error of the corresponding bin. |
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin. |
int |
entries()
Number of in-range entries in the histogram |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double[] value1,
double[] value2)
Fill H2D histogram from 2 arrays. |
void |
fill(double[] value1,
double[] value2,
double[] weights)
Fill H2D histogram from arrays. |
void |
fill(double value1,
double value2)
Fill H2D histogram assuming all weights are unity. |
void |
fill(double value1,
double value2,
double weight)
Fill H2D histogram with weights |
Histogram2D |
get()
Get the JAIDA Histogram2D |
hep.aida.IAxis |
getAxisX()
Get IAxis in X |
hep.aida.IAxis |
getAxisY()
Get IAxis in Y |
int |
getBinsX()
Get the number of bins in X |
int |
getBinsY()
Get the number of bins in Y |
double |
getLowerEdgeX(int index)
Get lower edge of the bin in X |
double |
getLowerEdgeY(int index)
Get lower edge of the bins in Y |
double |
getMaxX()
Get max value of axis in X |
double |
getMaxY()
Get max value of Y axis |
double |
getMeanX()
Get mean on X. |
double |
getMeanY()
Get mean on Y |
double |
getMinX()
Get min value of axis in X |
double |
getMinY()
Get min value of Y axis |
int |
getOverflowEntriesX()
Get overflow entries in Y |
int |
getOverflowEntriesY()
Get overflow entries in Y |
double |
getOverflowHightX()
Get overflow entries in Y |
double |
getOverflowHightY()
Get overflow height in Y |
double |
getRmsX()
Get RMS on X |
double |
getRmsY()
Get RMS on Y |
int |
getUnderflowEntriesX()
Get underflow entries in X |
int |
getUnderflowEntriesY()
Get underflow entries in Y |
double |
getUnderflowHightsX()
Get underflow heights in X |
double |
getUnderflowHightX()
Get underflow height in X |
double |
getUnderflowHightY()
Get underflow height in Y |
double |
getUpperEdgeX(int index)
Get upper edge of the bin in X |
double |
getUpperEdgeY(int index)
Get upper edge of the bin in Y |
void |
setBinError(int indexX,
int indexY,
double error)
Set the error on this bin. |
void |
setContents(double[][] heights,
double[][] errors)
Set content of H2D histogram |
void |
setContents(double[][] heights,
double[][] errors,
int[][] entries,
double[][] meanXs,
double[][] rmsXs,
double[][] meanYs,
double[][] rmsYs)
Set the content of the whole Histogram at once. |
void |
setMeanX(double mean)
Set mean on X. |
void |
setMeanY(double mean)
Set mean on Y |
void |
setNEntries(int entries)
Set all entries. |
void |
setRmsX(double rmsX)
Set RMS on X. |
void |
setRmsY(double rmsY)
Set RMS on Y |
void |
setTitle(java.lang.String title)
Set title |
void |
setValidEntries(int entries)
Set in-range entries. |
double |
sumAllBinHeights()
Get the sum of the bin heights for all the entries, in-range and out-range ones. |
double |
sumExtraBinHeights()
Get the sum of the bin heights for all the entries outside the Histogram's range. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public H2D(java.lang.String title, int binsX, double minX, double maxX, int binsY, double minY, double maxY)
title
- TitlebinsX
- Number of bins in XminX
- Min value in XmaxX
- Max value in XbinsY
- Number of bins in YminY
- Min value in YmaxY
- Max value in Ypublic H2D(java.lang.String title, hep.aida.IAxis xAx, hep.aida.IAxis yAy)
title
- titlexAx
- Axis for XyAy
- Axis for Ypublic H2D(Histogram2D h1)
h1
- Histogram2D histogrampublic H2D(hep.io.root.interfaces.TH2 h2t)
h1t
- TH1 histogram from JAIDAMethod Detail |
---|
public Histogram2D get()
public void setTitle(java.lang.String title)
setTitle
in class DrawOptions
title
- titlepublic void setRmsY(double rmsY)
rmsY
- RMS on Ypublic void setMeanY(double mean)
mean
- on Ypublic double getRmsY()
public double getMeanY()
public double getMeanX()
public double getRmsX()
public void setNEntries(int entries)
entries
- entriespublic void setValidEntries(int entries)
entries
- entriespublic void setRmsX(double rmsX)
public void setMeanX(double mean)
mean
- on Xpublic void setContents(double[][] heights, double[][] errors)
heights
- heightserrors
- errorspublic void setContents(double[][] heights, double[][] errors, int[][] entries, double[][] meanXs, double[][] rmsXs, double[][] meanYs, double[][] rmsYs)
heights
- The bin heightserrors
- The bin errorsentries
- The bin entriesmeanXs
- The means of the bin along the x axisrmsXs
- The rmss of the bin along the x axismeanYs
- The means of the bin along the y axisrmsYs
- The rmss of the bin along the y axispublic void fill(double value1, double value2)
value1
- value in Xvalue2
- value in Ypublic void setBinError(int indexX, int indexY, double error)
indexX
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.error
- the error.public double binHeight(int indexX, int indexY)
indexX
- The x bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.
public int extraEntries()
public double sumExtraBinHeights()
public double sumAllBinHeights()
public int getBinsX()
public int getBinsY()
public double getMinX()
public double getMaxX()
public double getMaxY()
public double getMinY()
public int getUnderflowEntriesY()
public double getUnderflowHightY()
public double getUnderflowHightX()
public int getUnderflowEntriesX()
public int getOverflowEntriesY()
public double getOverflowHightY()
public int getOverflowEntriesX()
public double getOverflowHightX()
public double getLowerEdgeX(int index)
index
- of the bin
public double getUpperEdgeX(int index)
index
- of the bin
public double getUpperEdgeY(int index)
index
- of the bin
public double getLowerEdgeY(int index)
index
- of the bin
public double getUnderflowHightsX()
public int allEntries()
public int entries()
public hep.aida.IAxis getAxisX()
public hep.aida.IAxis getAxisY()
public int binEntries(int indexX, int indexY)
indexX
- the x bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.indexY
- the y bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.
public double binError(int indexX, int indexY)
indexX
- the x bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.indexY
- the y bin number in the external representation: (0...N-1) or
OVERFLOW or UNDERFLOW.
public void fill(double value1, double value2, double weight)
value1
- value in Xvalue2
- value in Yweight
- weightpublic void fill(double[] value1, double[] value2)
value1
- array with values in Xvalue2
- array with values in Ypublic void fill(double[] value1, double[] value2, double[] weights)
value1
- array with values in Xvalue2
- array with values in Yweights
- weights
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |