#include <libBM.h>
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 | |
Array< std::string > & | _names () |
access function | |
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. |
More?...