Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

I_Bin Class Reference

#include <I_Bin.h>

Inheritance diagram for I_Bin:

Float_Weighted_Bin Gravity_Bin_1D Profile_Bin Weighted_Bin List of all members.

Detailed Description

Default type used is double.

Definition at line 7 of file I_Bin.h.

Public Types

typedef I_Bin Like_Current

Public Methods

 H_IID_IMPLEMENT (I_Bin)
 Very simple RTTI feature.

virtual double value (Index i=0) const=0
 Value associated with this bin.

virtual double error (Index i=0) const=0
 Error associated with this bin.

virtual Size count () const=0
 Count associated with this bin (number of entries).

virtual void set_value (double other, Index i=0)=0
 Set the value associated with this bin to other.

virtual void set_error (double other, Index i=0)=0
 Change/set the error of the bin to other.

virtual void set_count (Size other)=0
 Change/set the count of the bin to other.

virtual double center (Index=0) const
 Absolute or relative center of this bin on axis i .

virtual void set_center (double)
 Change/set the center of the bin to other (if possible).

virtual int offset (Index=0) const
 Relative or absolute position for the center of the bin.

virtual void reset ()=0
 Reset bin contents.

virtual void make (const Like_Current &other)=0
 Make current bin out of other bin.

virtual void add (const Like_Current &other)=0
 Add other bin to current one.

virtual void sub (const Like_Current &other)=0
 Subtract other bin from current one.

virtual void mul (const Like_Current &other)=0
 Multiply current bin by other one.

virtual void div (const Like_Current &other)=0
 Divide current bin by other one.

virtual void binomial_div (const Like_Current &other)=0
 Divide binomially current bin by other one.

virtual void add (double x)=0
 Add scalar to current bin.

virtual void sub (double x)=0
 Subtract scalar from current bin.

virtual void mul (double x)=0
 Multiply current bin by scalar.

virtual void div (double x)=0
 Divide current bin by scalar.


Protected Methods

 I_Bin ()
 Empty constructor.

virtual ~I_Bin ()
 Destructor.


Member Typedef Documentation

typedef I_Bin I_Bin::Like_Current
 

Reimplemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

Definition at line 12 of file I_Bin.h.


Constructor & Destructor Documentation

I_Bin::I_Bin   [inline, protected]
 

Definition at line 15 of file I_Bin.h.

virtual I_Bin::~I_Bin   [inline, protected, virtual]
 

Definition at line 17 of file I_Bin.h.


Member Function Documentation

virtual void I_Bin::add double    x [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::add const Like_Current   other [pure virtual]
 

Referenced by binScalarAdd::eval(), binHistoAdd::eval(), and H_2D_Helper::project().

virtual void I_Bin::binomial_div const Like_Current   other [pure virtual]
 

Referenced by binHistoBinDiv::eval().

virtual double I_Bin::center Index    = 0 const [inline, virtual]
 

The *real* absolute center can be obtained as follow: partition(i).lower_point(j)*bin(j).offset()+ bin(j).center(i), where j is the index of this bin.

Reimplemented in Gravity_Bin_1D.

Definition at line 42 of file I_Bin.h.

References Index.

Referenced by Gravity_Bin_1D::combine_centers(), and Gravity_Bin_1D::make().

virtual Size I_Bin::count   const [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

Referenced by Weighted_Bin::add(), Profile_Bin::add(), Gravity_Bin_1D::add(), Float_Weighted_Bin::add(), Weighted_Bin::binomial_div(), Gravity_Bin_1D::binomial_div(), Float_Weighted_Bin::binomial_div(), Weighted_Bin::div(), Profile_Bin::div(), Gravity_Bin_1D::div(), Float_Weighted_Bin::div(), Weighted_Bin::make(), Profile_Bin::make(), Gravity_Bin_1D::make(), Float_Weighted_Bin::make(), Weighted_Bin::mul(), Profile_Bin::mul(), Gravity_Bin_1D::mul(), Float_Weighted_Bin::mul(), Weighted_Bin::sub(), Profile_Bin::sub(), Gravity_Bin_1D::sub(), and Float_Weighted_Bin::sub().

virtual void I_Bin::div double    x [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::div const Like_Current   other [pure virtual]
 

Referenced by binScalarDiv::eval(), and binHistoDiv::eval().

virtual double I_Bin::error Index    i = 0 const [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

Referenced by Weighted_Bin::add(), Gravity_Bin_1D::add(), Float_Weighted_Bin::add(), Weighted_Bin::binomial_div(), Gravity_Bin_1D::binomial_div(), Float_Weighted_Bin::binomial_div(), Weighted_Bin::div(), Gravity_Bin_1D::div(), Float_Weighted_Bin::div(), Weighted_Bin::make(), Gravity_Bin_1D::make(), Float_Weighted_Bin::make(), Weighted_Bin::mul(), Gravity_Bin_1D::mul(), Float_Weighted_Bin::mul(), Weighted_Bin::sub(), Gravity_Bin_1D::sub(), Float_Weighted_Bin::sub(), and HistoTable1D::write().

I_Bin::H_IID_IMPLEMENT I_Bin   
 

virtual void I_Bin::make const Like_Current   other [pure virtual]
 

Referenced by H_2D_Helper::band().

virtual void I_Bin::mul double    x [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::mul const Like_Current   other [pure virtual]
 

Referenced by binScalarMul::eval(), and binHistoMul::eval().

virtual int I_Bin::offset Index    = 0 const [inline, virtual]
 

Parameters:
Index  == 1 means relative.
Index  == 0 means absolute.

Reimplemented in Gravity_Bin_1D.

Definition at line 51 of file I_Bin.h.

References Index.

virtual void I_Bin::reset   [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::set_center double    [inline, virtual]
 

Reimplemented in Gravity_Bin_1D.

Definition at line 45 of file I_Bin.h.

Referenced by H_2D_Helper::band(), and H_2D_Helper::project().

virtual void I_Bin::set_count Size    other [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::set_error double    other,
Index    i = 0
[pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::set_value double    other,
Index    i = 0
[pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::sub double    x [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

virtual void I_Bin::sub const Like_Current   other [pure virtual]
 

Referenced by binScalarSub::eval(), and binHistoSub::eval().

virtual double I_Bin::value Index    i = 0 const [pure virtual]
 

Implemented in Float_Weighted_Bin, Gravity_Bin_1D, Profile_Bin, and Weighted_Bin.

Referenced by Weighted_Bin::add(), Profile_Bin::add(), Gravity_Bin_1D::add(), Float_Weighted_Bin::add(), Weighted_Bin::binomial_div(), Profile_Bin::binomial_div(), Gravity_Bin_1D::binomial_div(), Float_Weighted_Bin::binomial_div(), Gravity_Bin_1D::combine_centers(), Weighted_Bin::div(), Profile_Bin::div(), Gravity_Bin_1D::div(), Float_Weighted_Bin::div(), Weighted_Bin::make(), Profile_Bin::make(), Gravity_Bin_1D::make(), Float_Weighted_Bin::make(), Weighted_Bin::mul(), Profile_Bin::mul(), Gravity_Bin_1D::mul(), Float_Weighted_Bin::mul(), H_Printout::print1(), H_Printout::print2(), Weighted_Bin::sub(), Profile_Bin::sub(), Gravity_Bin_1D::sub(), Float_Weighted_Bin::sub(), HistoTable3D::write(), HistoTable2D::write(), and HistoTable1D::write().


The documentation for this class was generated from the following file:

Anaphe documentation generated by Doxygen (www.doxygen.org)