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 length (number of scalars) of the RV.
ivec find (RV rv2)
 Find indexes of another rv in self.
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

Protected Attributes

int size
 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 Wed Mar 12 16:15:53 2008 for mixpp by  doxygen 1.5.3