\section{Pseudo\-Histogram Class Reference}
\label{classPseudoHistogram}\index{Pseudo\-Histogram@{Pseudo\-Histogram}}


Simple class with a histogram-\/like array without any display features.  




{\ttfamily \#include $<$Pseudo\-Histogram.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Pseudo\-Histogram} (int N\-Of\-Bins, double min, double max)
\begin{DoxyCompactList}\small\item\em Constructor with number of bins and lower and upper boundaries. \end{DoxyCompactList}\item 
{\bf $\sim$\-Pseudo\-Histogram} ()\label{classPseudoHistogram_ac029c4f281c17cdaf68d39fddae1a15e}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void {\bf clear\-Content} ()\label{classPseudoHistogram_a33438731e0ba0ede29117dccc9ba4bba}

\begin{DoxyCompactList}\small\item\em Clears the content but leaves the structure of the object, i. e. bins and boundaries. \end{DoxyCompactList}\item 
void {\bf fill} (double x, double w)
\begin{DoxyCompactList}\small\item\em Fill a value x with the weight w to the pseudo-\/histogram. \end{DoxyCompactList}\item 
int {\bf find\-Bin} (double x)
\begin{DoxyCompactList}\small\item\em Find the bin containing x. \end{DoxyCompactList}\item 
double {\bf get\-Bin\-Content} (int bin)
\begin{DoxyCompactList}\small\item\em Returns content of bin. \end{DoxyCompactList}\item 
int {\bf get\-Number\-Of\-Entries} (int bin)
\begin{DoxyCompactList}\small\item\em Returns number of entries in bin. \end{DoxyCompactList}\item 
bool {\bf is\-In\-Range} (int bin)
\begin{DoxyCompactList}\small\item\em Checks if bin is in range of the pseudo-\/histogram (over-\/ and underflow bins are taken into account) \end{DoxyCompactList}\item 
double {\bf integral} (int startbin, int endbin)
\begin{DoxyCompactList}\small\item\em Returns the weighted sum of the pseudo-\/histogram within startbin and endbin. \end{DoxyCompactList}\item 
void {\bf print\-Content} ()\label{classPseudoHistogram_a1a19d9760cdca7727278b05b63186c7f}

\begin{DoxyCompactList}\small\item\em Prints content of the pseudo-\/histogram on the standard output. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Simple class with a histogram-\/like array without any display features. 

\begin{DoxyAuthor}{Author}
O. Wendt (D\-E\-S\-Y) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Pseudo\-Histogram.\-h}{p.}{PseudoHistogram_8h_source},v 1.\-4 2007-\/07-\/23 10\-:57\-:29 engels Exp 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\index{Pseudo\-Histogram@{Pseudo\-Histogram}!Pseudo\-Histogram@{Pseudo\-Histogram}}
\index{Pseudo\-Histogram@{Pseudo\-Histogram}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{Pseudo\-Histogram}]{\setlength{\rightskip}{0pt plus 5cm}Pseudo\-Histogram\-::\-Pseudo\-Histogram (
\begin{DoxyParamCaption}
\item[{int}]{N\-Of\-Bins, }
\item[{double}]{min, }
\item[{double}]{max}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_ae647854e02fbf3414b7d66dffd08082d}


Constructor with number of bins and lower and upper boundaries. 


\begin{DoxyParams}{Parameters}
{\em N\-Of\-Bins} & \-: number of bins in the histogram. Over-\/ and underflow bin are created additionally. \\
\hline
{\em min} & \-: smallest value in the histogram \\
\hline
{\em max} & \-: largest value in the histogram \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Pseudo\-Histogram@{Pseudo\-Histogram}!fill@{fill}}
\index{fill@{fill}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{fill}]{\setlength{\rightskip}{0pt plus 5cm}void Pseudo\-Histogram\-::fill (
\begin{DoxyParamCaption}
\item[{double}]{x, }
\item[{double}]{w}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_add319779e237cad4c17a8bfbd703150c}


Fill a value x with the weight w to the pseudo-\/histogram. 


\begin{DoxyParams}{Parameters}
{\em x} & \-: value to fill in the histogram \\
\hline
{\em w} & \-: weight of the value x \\
\hline
\end{DoxyParams}
\index{Pseudo\-Histogram@{Pseudo\-Histogram}!find\-Bin@{find\-Bin}}
\index{find\-Bin@{find\-Bin}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{find\-Bin}]{\setlength{\rightskip}{0pt plus 5cm}int Pseudo\-Histogram\-::find\-Bin (
\begin{DoxyParamCaption}
\item[{double}]{x}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_a559049399ba72999d654e849b38024e5}


Find the bin containing x. 


\begin{DoxyParams}{Parameters}
{\em x} & \-: value on the x axis\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the bin containing {\ttfamily x} 
\end{DoxyReturn}
\index{Pseudo\-Histogram@{Pseudo\-Histogram}!get\-Bin\-Content@{get\-Bin\-Content}}
\index{get\-Bin\-Content@{get\-Bin\-Content}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{get\-Bin\-Content}]{\setlength{\rightskip}{0pt plus 5cm}double Pseudo\-Histogram\-::get\-Bin\-Content (
\begin{DoxyParamCaption}
\item[{int}]{bin}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_a564a1b4996e2c88df5941a840e7c40e2}


Returns content of bin. 


\begin{DoxyParams}{Parameters}
{\em bin} & \-: number of the bin \\
\hline
\end{DoxyParams}


References is\-In\-Range().



Referenced by integral().

\index{Pseudo\-Histogram@{Pseudo\-Histogram}!get\-Number\-Of\-Entries@{get\-Number\-Of\-Entries}}
\index{get\-Number\-Of\-Entries@{get\-Number\-Of\-Entries}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{get\-Number\-Of\-Entries}]{\setlength{\rightskip}{0pt plus 5cm}int Pseudo\-Histogram\-::get\-Number\-Of\-Entries (
\begin{DoxyParamCaption}
\item[{int}]{bin}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_a5e2f6e0ccd29dacf31eda474e513beff}


Returns number of entries in bin. 


\begin{DoxyParams}{Parameters}
{\em bin} & \-: number of the bin \\
\hline
\end{DoxyParams}


References is\-In\-Range().

\index{Pseudo\-Histogram@{Pseudo\-Histogram}!integral@{integral}}
\index{integral@{integral}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{integral}]{\setlength{\rightskip}{0pt plus 5cm}double Pseudo\-Histogram\-::integral (
\begin{DoxyParamCaption}
\item[{int}]{startbin, }
\item[{int}]{endbin}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_a34856eda282e996092d91133c9ce7749}


Returns the weighted sum of the pseudo-\/histogram within startbin and endbin. 


\begin{DoxyParams}{Parameters}
{\em startbin} & \-: number of the start bin for the integral \\
\hline
{\em endbin} & \-: number of the end bin for the integral \\
\hline
\end{DoxyParams}


References get\-Bin\-Content(), and is\-In\-Range().

\index{Pseudo\-Histogram@{Pseudo\-Histogram}!is\-In\-Range@{is\-In\-Range}}
\index{is\-In\-Range@{is\-In\-Range}!PseudoHistogram@{Pseudo\-Histogram}}
\subsubsection[{is\-In\-Range}]{\setlength{\rightskip}{0pt plus 5cm}bool Pseudo\-Histogram\-::is\-In\-Range (
\begin{DoxyParamCaption}
\item[{int}]{bin}
\end{DoxyParamCaption}
)}\label{classPseudoHistogram_aab6a6e06a4cc4f0ecb732ac2a1a898f1}


Checks if bin is in range of the pseudo-\/histogram (over-\/ and underflow bins are taken into account) 


\begin{DoxyParams}{Parameters}
{\em bin} & \-: number of the bin \\
\hline
\end{DoxyParams}


Referenced by get\-Bin\-Content(), get\-Number\-Of\-Entries(), and integral().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Pseudo\-Histogram.\-h\item 
Pseudo\-Histogram.\-cc\end{DoxyCompactItemize}
