43 int m_noofcompartments;
53 m_noofcompartments = 1;
121 return m_noofcompartments;
133 return 3 * m_noofcompartments;
143 inline const double TP (
long l)
const {
155 inline double&
TP (
long l) {
175 inline const void Initialize (
long samples,
int compartments) {
178 assert (compartments);
180 m_noofcompartments = compartments;
198 assert(pos <
Size());
225 assert(pos <
Size());
237 at (
long pos)
const {
281 Signal (
long size,
int compartments);
317 m_rng = RNG( val * (
long ) clock() );
The signal store and IO.
Definition Signal.h:249
const long GetSize()
Definition Signal.h:296
void ReadFrom(char *fname)
Definition Signal.cpp:55
Signal()
Default constructor.
Definition Signal.h:258
void InitRandGenerator(int val=1)
Definition Signal.h:316
Repository m_repository
Signal repository
Definition Signal.h:332
RNG m_rng
random number generator
Definition Signal.h:331
RNG * Noise()
Definition Signal.h:325
~Signal()
Default destructor.
Definition Signal.h:264
Repository * Repo()
Definition Signal.h:306
Signal repository structure.
Definition Signal.h:40
const double TP(long l) const
Time of given sample index.
Definition Signal.h:143
const void Initialize(long samples, int compartments)
Occupy RAM and set some dimensions.
Definition Signal.h:175
~Repository()
Destruct.
Definition Signal.h:62
long Size()
Size of bulk data (i.e. number of elemments of m_data)
Definition Signal.h:71
long m_noofsamples
Definition Signal.h:42
std::vector< double > m_times
Definition Signal.h:44
double * Data()
Reference to data repository.
Definition Signal.h:83
const long Position(long l) const
Reference to data of given sample index.
Definition Signal.h:165
const long Samples() const
Number of samples.
Definition Signal.h:107
std::vector< double > m_data
Definition Signal.h:45
double & TP(long l)
Reference to time of given sample index.
Definition Signal.h:155
double & at(long pos)
Value at position in store.
Definition Signal.h:222
double & operator[](long pos)
Value at position in store.
Definition Signal.h:195
Repository()
Construct.
Definition Signal.h:51
const double at(long pos) const
Access to position in store.
Definition Signal.h:237
double * Times()
Reference to time point repository.
Definition Signal.h:95
const int Compartments() const
Number of compartments.
Definition Signal.h:119
const int NProps() const
Number of properties per compartment.
Definition Signal.h:131