My Project
Public Member Functions
DoubleBinArrange Class Reference

Change bin width of one-dimensional histogram. More...

#include <DoubleBinArrange.hh>

List of all members.

Public Member Functions

 DoubleBinArrange (UInt4 SourceBinNumber, UInt4 ResultBinNumber)
void SetHist (const vector< Double > &SourceBinBoundary, const vector< Double > &SourceValue, const vector< Double > &SourceError, const vector< Double > &ResultBinBoundary)
vector< Double > & PutResultBinMin ()
vector< Double > & PutResultBinMax ()
vector< Double > PutResultBin ()
vector< Double > PutResultBinVector ()
vector< Double > & PutResultValue ()
vector< Double > & PutResultError ()
void Binning (Int4 DefaultErrorValue=0)
void Averaging ()

Detailed Description

Change bin width of one-dimensional histogram.

This class can apply to changing bin widths of one-dimensional histogram. The bin boundaries applied to the change will be set by user. When the class is used, four steps are required as the followings, the constructor, "SetHist( )", "Binning() or Averaging()", and extracting results. If you use the method of "Binning()" in the procedure, this class will calculate simple addition concerning with its errors. If you use "Averaging()", simple averaging will be done.


Constructor & Destructor Documentation

DoubleBinArrange::DoubleBinArrange ( UInt4  SourceBinNumber,
UInt4  ResultBinNumber 
)

Constructor. The first argument is the number of source histogram bin, and the second argument is that of result's.


Member Function Documentation

Doing simple averaging, see the manual of this class.

void DoubleBinArrange::Binning ( Int4  DefaultErrorValue = 0)

Doing simple binning, see the manual of this class.

vector< Double > DoubleBinArrange::PutResultBin ( )

Returns the value of result histogram bin-boundary, this method returns a set of each center value of each bin. The size of returned vector is "ResultBinNumber". You should delete the dynamical data-object returned by this method.

vector< Double > & DoubleBinArrange::PutResultBinMax ( )

Returns the value of result histogram bin-boundary, this method returns a set of each maximum value of each bin. The size of returned vector is "ResultBinNumber". You should delete the dynamical data-object returned by this method.

vector< Double > & DoubleBinArrange::PutResultBinMin ( )

Returns the value of result histogram bin-boundary, this method returns a set of each minimal value of each bin. The size of returned vector is "ResultBinNumber". You should delete the dynamical data-object returned by this method.

Returns the value of result histogram bin-boundary, this method returns a set of each boundary of each bin. The size of returned vector is "ResultBinNumber+1". You should delete the dynamical data-object returned by this method.

vector< Double > & DoubleBinArrange::PutResultError ( )

Returns result histogram errors. The size of returned vector is "ResultBinNumber". You should delete the dynamical data-object returned by this method.

vector< Double > & DoubleBinArrange::PutResultValue ( )

Returns result histogram values. The size of returned vector is "ResultBinNumber". You should delete the dynamical data-object returned by this method.

void DoubleBinArrange::SetHist ( const vector< Double > &  SourceBinBoundary,
const vector< Double > &  SourceValue,
const vector< Double > &  SourceError,
const vector< Double > &  ResultBinBoundary 
)

The arguments are the bin-boundary, values and its errors of the source histogram, and "ResultBinBoundary" is the boundary values of output histogram. The size of vectors are SourceBinNumber+1, SourceBinNumber, SourceBinNumber and ResultBinNumber+1, respectively.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends