Antonio S. Torralba
Universidad Complutense  

Chemistry

BBM1

Biophysics

 

FUNDER - Documentation


Feria Only in Spanish. Sorry!

Funder

Main

Theory

Documents

Example

Download

Contact


 

Signal - Public methods

Prev

C++ classes

Up

System - Public methods

Next



Response - PUBLIC METHODS


Response();

Creates an order-one response of 100 points and time increment equal to 1.


Response(double **data, int order, int size, double scale);

Allocates responses up to order, plus another vector for the sum of the responses of all orders, and copies the data from the input matrix.

Parameters

data

Pointer to a matrix containing the time course of the responses

order

Maximum order of the response

size

Number of discrete-time points

scale

Time increment between discrete-time points


Response(const Response &);

Copy constructor. Implicitly called when initializating in declarations.


~Response();

Destruction of the object unallocates the memory reserved for the data.


Response & operator=(const Response &);

Assignment of responses.


Signal operator[](const int index);

Retrieves the response of a given order, as indicated by the index. For example:

             Signal sig;            // Creates a Signal object
             Response res;          // Creates a default response

             sig=res[0];            // Sum of the responses of all orders
             sig=res[1];            // Response of first order

If the index is negative or exceeds the order, the program terminates.

Parameter

index

Order of the response to be returned. Zero is the sum of all orders


void WriteToTextFile(const char *name);

Writes the response of all orders to a text file of the form:


Column no.

Meaning

1

Real time

2

Sum of responses of all orders

3

First-order response

...

...


If the file cannot be created, the program terminates.

Parameter

name

A text file name for writing the response


int GetOrder();

Retrieves the order of the response, i.e. the number of responses of different orders that form the object.


int GetSize();

Retrieves the number of discrete-time points of the responses.


double GetTimeInc();

Retrieves the time increment used for discretizing the responses.



Prev

Up

Next

Signal
- Public methods

C++ classes

System
- Public methods

 

Valid HTML 4.01!

Copyright © 2003-2013 Antonio Sánchez Torralba
Last modified:
Monday, 04-Mar-2013 11:58:25 CET

© 2013 Antonio Sánchez Torralba