RV Class Reference

Class representing variables, most often random variables. More...

#include <libBM.h>

List of all members.

Public Member Functions

 RV (ivec in_ids, Array< std::string > in_names, ivec in_sizes, ivec in_times)
 Full constructor which is called by the others.
 RV (ivec ids)
 default constructor
 RV ()
 Empty constructor will be set later.
int count () const
 Return number of scalars in the RV.
int length () const
 Return length (number of entries) of the RV.
ivec find (RV rv2)
 Find indexes of another rv in self.
bool equal (RV rv2) const
 Compare if rv2 is identical to this RV.
void add (const RV &rv2)
 Add (concat) another variable to the current one.
RV subt (RV rv2)
 Subtract another variable from the current one.
RV subselect (ivec ind)
 Select only variables at indeces ind.
RV operator() (ivec ind)
 Select only variables at indeces ind.
void t (int delta)
 Generate new RV with time shifted by delta.
ivec indexlist ()
 generate a list of indeces, i.e. which
Array< std::string > & _names ()
 access function
int id (int at)
 access function
int size (int at)
 access function
int time (int at)
 access function
std::string name (int at)
 access function

Protected Attributes

int tsize
 size = sum of sizes
int len
 len = number of individual rvs
ivec ids
 Vector of unique IDs.
ivec sizes
 Vector of sizes.
ivec times
 Vector of shifts from current time.
Array< std::string > names
 Array of names.

Friends

std::ostream & operator<< (std::ostream &os, const RV &rv)
 Printing output e.g. for debugging.
RV concat (const RV &rv1, const RV &rv2)
 Add (concat) another variable to the current one.


Detailed Description

Class representing variables, most often random variables.

More?...


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

Generated on Fri May 9 23:06:44 2008 for mixpp by  doxygen 1.5.5