BCDataPoint Class Reference

#include <BCDataPoint.h>

List of all members.


Detailed Description

A class representing a data point.

Author:
Daniel Kollar

Kevin Kröninger

Version:
1.0
Date:
08.2008 This class represents a data point which is the basic unit of information. A data point can be an event, a bin content, etc. Each data point can store several variables of type double. The variables are organized in a vector.

Definition at line 30 of file BCDataPoint.h.


Public Member Functions

Constructors and destructors


 BCDataPoint (std::vector< double > x)
 BCDataPoint (int nvariables)
 ~BCDataPoint ()
Member functions (get)


int GetNValues ()
double GetValue (int index)
std::vector< double > GetValues ()
Member functions (set)


void SetValue (int index, double value)
void SetValues (std::vector< double > values)

Private Attributes

std::vector< double > fData

Constructor & Destructor Documentation

BCDataPoint::BCDataPoint ( int  nvariables  ) 

A constructor.

Parameters:
nvariables The number of variables stored in a data. object

Definition at line 15 of file BCDataPoint.cxx.

BCDataPoint::BCDataPoint ( std::vector< double >  x  ) 

A constructor.

Parameters:
x The vector containing the data.

Definition at line 27 of file BCDataPoint.cxx.

BCDataPoint::~BCDataPoint (  ) 

A destructor.

Definition at line 38 of file BCDataPoint.cxx.


Member Function Documentation

int BCDataPoint::GetNValues (  )  [inline]

Returns the number of values.

Definition at line 76 of file BCDataPoint.h.

double BCDataPoint::GetValue ( int  index  ) 

Parameters:
index The index of the variable.
Returns:
The value of the variable.

Definition at line 45 of file BCDataPoint.cxx.

std::vector<double> BCDataPoint::GetValues (  )  [inline]

Returns:
A vector of values.

Definition at line 70 of file BCDataPoint.h.

void BCDataPoint::SetValue ( int  index,
double  value 
)

Set the value of a variable.

Parameters:
index The index of the variable
value The value of the variable

Definition at line 64 of file BCDataPoint.cxx.

void BCDataPoint::SetValues ( std::vector< double >  values  ) 

Set the values of all variables.

Parameters:
values A vector of values

Definition at line 81 of file BCDataPoint.cxx.


Member Data Documentation

std::vector<double> BCDataPoint::fData [private]

The vector containing the values of the variables.

Definition at line 104 of file BCDataPoint.h.


Generated on Mon Sep 15 17:04:29 2008 for Bayesian Analysis Toolkit by  doxygen 1.5.6