|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.DrawOptions
jhplot.H1D
public class H1D
Class to create a histogram in one dimension. Based on JAIDA Histogram1D class
Constructor Summary | |
---|---|
H1D(Histogram1D h1)
Create H1D histogram from JAIDA Histogram1D class |
|
H1D(hep.aida.IHistogram1D h1)
Create H1D histogram from JAIDA IHistogram1D class |
|
H1D(java.lang.String title,
double[] edges)
Creat 1D histogram with variable bin size |
|
H1D(java.lang.String title,
int bins,
double min,
double max)
Creat 1D histogram |
|
H1D(hep.io.root.interfaces.TH1 h1t)
Create H1D histogram from JAIDA TH1 histogram class |
Method Summary | |
---|---|
int |
allEntries()
Get number of all entries |
double |
binCenter(int index)
Get bin centers |
double |
binEntries(int index)
Number of entries in a bin with index i |
double |
binError(int index)
Error on the bin with index i |
double |
binHeight(int index)
Hight of the corresponding bin |
double |
binLowerEdge(int index)
Get bin lower edge |
double |
binMean(int index)
Mean in a single bin with index |
double |
binRms(int index)
RMS of a single bin with index |
double |
binUpperEdge(int index)
Get bin upper edge |
int |
entries()
Number of in-range entries in the histogram |
int |
extraEntries()
Number of under and overflow entries in the histogram. |
void |
fill(double value)
Fill histogram with a value |
void |
fill(double value,
double weight)
Fill histogram a with weight |
Histogram1D |
get()
Get JAIDA histogram |
hep.aida.IAxis |
getAxis()
Get histogram axis |
int |
getBins()
Get the number of bins |
double |
getMax()
Get Maximum value of axis |
double |
getMin()
Get Minimum value of the axis |
java.lang.String |
getTitle()
get Title of the histogram |
double |
maxBinHeight()
Max value of all bins |
double |
mean()
Get mean of the histogram |
double |
minBinHeight()
Min value of all bins |
H1D |
oper(double scale)
Scale of the histogram |
H1D |
oper(H1D a,
java.lang.String what)
Various manipulations with histograms (+,-,*,/). |
H1D |
oper(H1D a,
java.lang.String title,
java.lang.String what)
Various manipulations with histograms (+,-,*,/) |
H1D |
oper(int scale)
Scale histogram. |
H1D |
oper(java.lang.String title,
double scale)
Scale the histogram |
H1D |
oper(java.lang.String title,
int scale)
Scale the histogram. |
void |
print()
Print histogram on screen |
double |
rms()
Get RMS of histogram |
void |
setBins(int bins)
Sets the number of bins |
void |
setMax(double max)
Set Maximum value of axis |
void |
setMin(double min)
Set Min value of axis |
void |
setTitle(java.lang.String title)
Sets the title |
double |
sumAllBinHeights()
Sum of all heights |
void |
toFile(java.lang.String name)
Write the H1D histogram to a file |
void |
toTable()
Print the H1D histogram to a Table in a separate Frame. |
void |
toTable(boolean format)
Print the H1D histogram to a Table in a separate Frame. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public H1D(java.lang.String title, int bins, double min, double max)
title
- Titlebins
- Number of binsmin
- Minimum valuemax
- Maximum valuepublic H1D(java.lang.String title, double[] edges)
title
- Titleedges
- edgespublic H1D(Histogram1D h1)
h1
- Histogram1D histogram from JAIDApublic H1D(hep.aida.IHistogram1D h1)
h1
- IHistogram1D histogram from JAIDApublic H1D(hep.io.root.interfaces.TH1 h1t)
h1t
- TH1 histogram from JAIDAMethod Detail |
---|
public void print()
public void toTable()
public hep.aida.IAxis getAxis()
public double binCenter(int index)
index
- bin index
public double binLowerEdge(int index)
index
- bin index
public double binUpperEdge(int index)
index
- bin index
public void toTable(boolean format)
public void toFile(java.lang.String name)
name
- File namepublic void setTitle(java.lang.String title)
setTitle
in class DrawOptions
title
- Titlepublic java.lang.String getTitle()
getTitle
in class DrawOptions
public Histogram1D get()
public void setMin(double min)
min
- Minimum value of axispublic double getMin()
public void setMax(double max)
max
- Maximum value of axispublic double getMax()
public void setBins(int bins)
bins
- Number of binspublic int getBins()
public void fill(double value)
value
- Value to be filledpublic void fill(double value, double weight)
value
- Value to be filledweight
- Weight of the valuepublic double mean()
public double rms()
public int allEntries()
public int extraEntries()
public int entries()
public H1D oper(double scale)
scale
- Scaling factor
public H1D oper(int scale)
scale
- Scale factor
public H1D oper(java.lang.String title, int scale)
title
- New titlescale
- Scale factor
public H1D oper(java.lang.String title, double scale)
title
- New titlescale
- Scale factor
public double binEntries(int index)
index
- Bin index
public double binError(int index)
index
- Bin index
public double binHeight(int index)
index
- Bin index
public double binMean(int index)
index
- Bin index
public double binRms(int index)
index
- Bin index
public double maxBinHeight()
public double minBinHeight()
public double sumAllBinHeights()
public H1D oper(H1D a, java.lang.String what)
a
- H1D histogram.what
- String representing the operation:
"+" add a histogarm to the original
"-" subtract a histogram from the original
"*" multiply
"/" divide
public H1D oper(H1D a, java.lang.String title, java.lang.String what)
a
- H1D histogram.title
- New Title
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |