Portfolio Code | Clement Colmerauer
Repositories
Site
Rabbit simulation
Code
Commits
Branches
Tags
Search
Tree:
a20104a
Branches
Tags
master
Rabbit simulation
build
colt
doc
api
hep
aida
ref
Histogram1D.html
initial commit
Clement COLMERAUER
commited
a20104a
at 2024-09-09 10:17:52
Histogram1D.html
Blame
History
Raw
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2_05) on Thu Sep 09 20:36:14 PDT 2004 --> <TITLE> Histogram1D (Colt 1.2.0 - API Specification) </TITLE> <META NAME="keywords" CONTENT="hep.aida.ref.Histogram1D class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Histogram1D (Colt 1.2.0 - API Specification)"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Histogram1D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Colt 1.2.0</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../hep/aida/ref/FixedAxis.html" title="class in hep.aida.ref"><B>PREV CLASS</B></A> <A HREF="../../../hep/aida/ref/Histogram2D.html" title="class in hep.aida.ref"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Histogram1D.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> hep.aida.ref</FONT> <BR> Class Histogram1D</H2> <PRE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by">hep.aida.ref.Histogram <IMG SRC="../../../resources/inherit.gif" ALT="extended by">hep.aida.ref.AbstractHistogram1D <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>hep.aida.ref.Histogram1D</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A>, <A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD> </DL> <HR> <DL> <DT>public class <B>Histogram1D</B><DT>extends hep.aida.ref.AbstractHistogram1D<DT>implements <A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></DL> <P> A reference implementation of hep.aida.IHistogram1D. The goal is to provide a clear implementation rather than the most efficient implementation. However, performance seems fine - filling 1.2 * 10^6 points/sec, both using FixedAxis or VariableAxis. <P> <P> <DL> <DT><B>Version:</B></DT> <DD>1.0, 23/03/2000</DD> <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#hep.aida.ref.Histogram1D">Serialized Form</A></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_hep.aida.IHistogram"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from interface hep.aida.<A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../hep/aida/IHistogram.html#OVERFLOW">OVERFLOW</A>, <A HREF="../../../hep/aida/IHistogram.html#serialVersionUID">serialVersionUID</A>, <A HREF="../../../hep/aida/IHistogram.html#UNDERFLOW">UNDERFLOW</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#Histogram1D(java.lang.String, double[])">Histogram1D</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, double[] edges)</CODE> <BR> Creates a variable-width histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#Histogram1D(java.lang.String, hep.aida.IAxis)">Histogram1D</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, <A HREF="../../../hep/aida/IAxis.html" title="interface in hep.aida">IAxis</A> axis)</CODE> <BR> Creates a histogram with the given axis binning.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#Histogram1D(java.lang.String, int, double, double)">Histogram1D</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, int bins, double min, double max)</CODE> <BR> Creates a fixed-width histogram.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#allEntries()">allEntries</A></B>()</CODE> <BR> Number of all entries in all (both in-range and under/overflow) bins in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#binEntries(int)">binEntries</A></B>(int index)</CODE> <BR> Number of entries in the corresponding bin (ie the number of times fill was called for this bin).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#binError(int)">binError</A></B>(int index)</CODE> <BR> The error on this bin.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#binHeight(int)">binHeight</A></B>(int index)</CODE> <BR> Total height of the corresponding bin (ie the sum of the weights in this bin).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#dimensions()">dimensions</A></B>()</CODE> <BR> Returns 1 for one-dimensional histograms, 2 for two-dimensional histograms, and so on.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#entries()">entries</A></B>()</CODE> <BR> Number of in-range entries in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#equivalentBinEntries()">equivalentBinEntries</A></B>()</CODE> <BR> Number of equivalent entries.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#extraEntries()">extraEntries</A></B>()</CODE> <BR> Number of under and overflow entries in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#fill(double)">fill</A></B>(double x)</CODE> <BR> Fill histogram with weight 1.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#fill(double, double)">fill</A></B>(double x, double weight)</CODE> <BR> Fill histogram with specified weight.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#mean()">mean</A></B>()</CODE> <BR> Returns the mean of the whole histogram as calculated on filling-time.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#minMaxBins()">minMaxBins</A></B>()</CODE> <BR> Indexes of the in-range bins containing the smallest and largest binHeight(), respectively.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#reset()">reset</A></B>()</CODE> <BR> Reset contents; as if just constructed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#rms()">rms</A></B>()</CODE> <BR> Returns the rms of the whole histogram as calculated on filling-time.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#sumAllBinHeights()">sumAllBinHeights</A></B>()</CODE> <BR> Sum of all (both in-range and under/overflow) bin heights in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#sumBinHeights()">sumBinHeights</A></B>()</CODE> <BR> Sum of in-range bin heights in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#sumExtraBinHeights()">sumExtraBinHeights</A></B>()</CODE> <BR> Sum of under/overflow bin heights in the histogram.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#title()">title</A></B>()</CODE> <BR> Title of the histogram (will be set only in the constructor).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../hep/aida/IAxis.html" title="interface in hep.aida">IAxis</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../hep/aida/ref/Histogram1D.html#xAxis()">xAxis</A></B>()</CODE> <BR> Returns the X Axis.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_hep.aida.IHistogram1D"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from interface hep.aida.<A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#minMaxBins()">minMaxBins</A>, <A HREF="../../../hep/aida/IHistogram1D.html#xAxis()">xAxis</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_hep.aida.IHistogram"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from interface hep.aida.<A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../hep/aida/IHistogram.html#dimensions()">dimensions</A>, <A HREF="../../../hep/aida/IHistogram.html#entries()">entries</A>, <A HREF="../../../hep/aida/IHistogram.html#extraEntries()">extraEntries</A>, <A HREF="../../../hep/aida/IHistogram.html#sumAllBinHeights()">sumAllBinHeights</A>, <A HREF="../../../hep/aida/IHistogram.html#sumBinHeights()">sumBinHeights</A>, <A HREF="../../../hep/aida/IHistogram.html#sumExtraBinHeights()">sumExtraBinHeights</A>, <A HREF="../../../hep/aida/IHistogram.html#title()">title</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="Histogram1D(java.lang.String, double[])"><!-- --></A><H3> Histogram1D</H3> <PRE> public <B>Histogram1D</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, double[] edges)</PRE> <DL> <DD>Creates a variable-width histogram. Example: <tt>edges = (0.2, 1.0, 5.0)</tt> yields an axis with 2 in-range bins <tt>[0.2,1.0), [1.0,5.0)</tt> and 2 extra bins <tt>[-inf,0.2), [5.0,inf]</tt>. <P> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The histogram title.<DD><CODE>edges</CODE> - the bin boundaries the axis shall have; must be sorted ascending and must not contain multiple identical elements. <DT><B>Throws:</B> <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <tt>edges.length < 1</tt>.</DL> <HR> <A NAME="Histogram1D(java.lang.String, int, double, double)"><!-- --></A><H3> Histogram1D</H3> <PRE> public <B>Histogram1D</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, int bins, double min, double max)</PRE> <DL> <DD>Creates a fixed-width histogram. <P> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The histogram title.<DD><CODE>bins</CODE> - The number of bins.<DD><CODE>min</CODE> - The minimum value on the X axis.<DD><CODE>max</CODE> - The maximum value on the X axis.</DL> <HR> <A NAME="Histogram1D(java.lang.String, hep.aida.IAxis)"><!-- --></A><H3> Histogram1D</H3> <PRE> public <B>Histogram1D</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> title, <A HREF="../../../hep/aida/IAxis.html" title="interface in hep.aida">IAxis</A> axis)</PRE> <DL> <DD>Creates a histogram with the given axis binning. <P> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The histogram title.<DD><CODE>axis</CODE> - The axis description to be used for binning.</DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="allEntries()"><!-- --></A><H3> allEntries</H3> <PRE> public int <B>allEntries</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Number of all entries in all (both in-range and under/overflow) bins in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#allEntries()">allEntries</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="binEntries(int)"><!-- --></A><H3> binEntries</H3> <PRE> public int <B>binEntries</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Number of entries in the corresponding bin (ie the number of times fill was called for this bin). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#binEntries(int)">binEntries</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.</DL> </DD> </DL> <HR> <A NAME="binError(int)"><!-- --></A><H3> binError</H3> <PRE> public double <B>binError</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>The error on this bin. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#binError(int)">binError</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.</DL> </DD> </DL> <HR> <A NAME="binHeight(int)"><!-- --></A><H3> binHeight</H3> <PRE> public double <B>binHeight</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Total height of the corresponding bin (ie the sum of the weights in this bin). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#binHeight(int)">binHeight</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.</DL> </DD> </DL> <HR> <A NAME="equivalentBinEntries()"><!-- --></A><H3> equivalentBinEntries</H3> <PRE> public double <B>equivalentBinEntries</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Number of equivalent entries. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#equivalentBinEntries()">equivalentBinEntries</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD><tt>SUM[ weight ] ^ 2 / SUM[ weight^2 ]</tt>.</DL> </DD> </DL> <HR> <A NAME="fill(double)"><!-- --></A><H3> fill</H3> <PRE> public void <B>fill</B>(double x)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Fill histogram with weight 1. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#fill(double)">fill</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fill(double, double)"><!-- --></A><H3> fill</H3> <PRE> public void <B>fill</B>(double x, double weight)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Fill histogram with specified weight. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#fill(double, double)">fill</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="mean()"><!-- --></A><H3> mean</H3> <PRE> public double <B>mean</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Returns the mean of the whole histogram as calculated on filling-time. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#mean()">mean</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="reset()"><!-- --></A><H3> reset</H3> <PRE> public void <B>reset</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Reset contents; as if just constructed. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="rms()"><!-- --></A><H3> rms</H3> <PRE> public double <B>rms</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Returns the rms of the whole histogram as calculated on filling-time. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#rms()">rms</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="dimensions()"><!-- --></A><H3> dimensions</H3> <PRE> public int <B>dimensions</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Returns 1 for one-dimensional histograms, 2 for two-dimensional histograms, and so on. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#dimensions()">dimensions</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="entries()"><!-- --></A><H3> entries</H3> <PRE> public int <B>entries</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Number of in-range entries in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#entries()">entries</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="extraEntries()"><!-- --></A><H3> extraEntries</H3> <PRE> public int <B>extraEntries</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Number of under and overflow entries in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#extraEntries()">extraEntries</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="minMaxBins()"><!-- --></A><H3> minMaxBins</H3> <PRE> public int[] <B>minMaxBins</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Indexes of the in-range bins containing the smallest and largest binHeight(), respectively. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#minMaxBins()">minMaxBins</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD><tt>{minBin,maxBin}</tt>.</DL> </DD> </DL> <HR> <A NAME="sumAllBinHeights()"><!-- --></A><H3> sumAllBinHeights</H3> <PRE> public double <B>sumAllBinHeights</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Sum of all (both in-range and under/overflow) bin heights in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#sumAllBinHeights()">sumAllBinHeights</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="sumBinHeights()"><!-- --></A><H3> sumBinHeights</H3> <PRE> public double <B>sumBinHeights</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Sum of in-range bin heights in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#sumBinHeights()">sumBinHeights</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="sumExtraBinHeights()"><!-- --></A><H3> sumExtraBinHeights</H3> <PRE> public double <B>sumExtraBinHeights</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Sum of under/overflow bin heights in the histogram. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#sumExtraBinHeights()">sumExtraBinHeights</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="xAxis()"><!-- --></A><H3> xAxis</H3> <PRE> public <A HREF="../../../hep/aida/IAxis.html" title="interface in hep.aida">IAxis</A> <B>xAxis</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></B></DD> <DD>Returns the X Axis. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram1D.html#xAxis()">xAxis</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram1D.html" title="interface in hep.aida">IHistogram1D</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="title()"><!-- --></A><H3> title</H3> <PRE> public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>title</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></B></DD> <DD>Title of the histogram (will be set only in the constructor). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../hep/aida/IHistogram.html#title()">title</A></CODE> in interface <CODE><A HREF="../../../hep/aida/IHistogram.html" title="interface in hep.aida">IHistogram</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Histogram1D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <b>Colt 1.2.0</b></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../hep/aida/ref/FixedAxis.html" title="class in hep.aida.ref"><B>PREV CLASS</B></A> <A HREF="../../../hep/aida/ref/Histogram2D.html" title="class in hep.aida.ref"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Histogram1D.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <font size=-1 >Jump to the <a target=_top href=http://dsd.lbl.gov/~hoschek/colt >Colt Homepage</a> </BODY> </HTML>