CMS 3D CMS Logo

Public Member Functions | Protected Attributes

GBRForest2D Class Reference

#include <GBRForest2D.h>

List of all members.

Public Member Functions

 GBRForest2D ()
void GetResponse (const float *vector, double &x, double &y) const
void SetInitialResponse (double x, double y)
std::vector< GBRTree2D > & Trees ()
const std::vector< GBRTree2D > & Trees () const
 ~GBRForest2D ()

Protected Attributes

double fInitialResponseX
double fInitialResponseY
std::vector< GBRTree2DfTrees

Detailed Description

Definition at line 23 of file GBRForest2D.h.


Constructor & Destructor Documentation

GBRForest2D::GBRForest2D ( )
GBRForest2D::~GBRForest2D ( ) [inline]

Definition at line 29 of file GBRForest2D.h.


Member Function Documentation

void GBRForest2D::GetResponse ( const float *  vector,
double &  x,
double &  y 
) const [inline]

Definition at line 45 of file GBRForest2D.h.

References fInitialResponseX, fInitialResponseY, and fTrees.

                                                                                    {
  x = fInitialResponseX;
  y = fInitialResponseY;
  double tx, ty;
  for (std::vector<GBRTree2D>::const_iterator it=fTrees.begin(); it!=fTrees.end(); ++it) {
    it->GetResponse(vector,tx,ty);
    x += tx;
    y += ty;
  }
  return;
}
void GBRForest2D::SetInitialResponse ( double  x,
double  y 
) [inline]

Definition at line 33 of file GBRForest2D.h.

References fTrees.

std::vector<GBRTree2D>& GBRForest2D::Trees ( ) [inline]

Definition at line 35 of file GBRForest2D.h.

References fTrees.

{ return fTrees; }
const std::vector<GBRTree2D>& GBRForest2D::Trees ( ) const [inline]

Definition at line 36 of file GBRForest2D.h.


Member Data Documentation

double GBRForest2D::fInitialResponseX [protected]

Definition at line 39 of file GBRForest2D.h.

Referenced by GetResponse().

double GBRForest2D::fInitialResponseY [protected]

Definition at line 40 of file GBRForest2D.h.

Referenced by GetResponse().

std::vector<GBRTree2D> GBRForest2D::fTrees [protected]

Definition at line 41 of file GBRForest2D.h.

Referenced by GetResponse(), SetInitialResponse(), and Trees().