JEMRIS  2.8.2
open-source MRI simulations
List of all members | Public Member Functions | Private Attributes
Signal Class Reference

The signal store and IO. More...

#include <Signal.h>

+ Collaboration diagram for Signal:

Public Member Functions

 Signal ()
 Default constructor.
 
 ~Signal ()
 Default destructor.
 
 Signal (long size)
 
 Signal (long size, int compartments)
 
void ReadFrom (char *fname)
 
const long GetSize ()
 
RepositoryRepo ()
 
void InitRandGenerator (int val=1)
 
RNG * Noise ()
 

Private Attributes

RNG m_rng
 random number generator
 
Repository m_repository
 Signal repository.
 

Detailed Description

The signal store and IO.

Constructor & Destructor Documentation

§ Signal() [1/2]

Signal::Signal ( long  size)

Instantiate a signal object of given size

Parameters
sizeNumber of signal definition points

§ Signal() [2/2]

Signal::Signal ( long  size,
int  compartments 
)

Instantiate a signal object of given size

Parameters
sizeNumber of signal definition points
compartmentsNumber of signal compartments

Member Function Documentation

§ GetSize()

const long Signal::GetSize ( )
inline

Get the number of samples of the data

Returns
Number of the samples.

§ InitRandGenerator()

void Signal::InitRandGenerator ( int  val = 1)
inline

Initialize the random number generator

Parameters
valAny integer (default 1)

§ Noise()

RNG* Signal::Noise ( )
inline

Initialize the random number generator

Parameters
valAny integer (default 1)

§ ReadFrom()

void Signal::ReadFrom ( char *  fname)

Read in binary data from file

Parameters
fnameFile name

§ Repo()

Repository* Signal::Repo ( )
inline

Access repository

Returns
Number of the samples.
+ Here is the caller graph for this function:

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

-- last change 24.05.2018 | Tony Stoecker | Imprint | Data Protection --