Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

punnets_common::func_delta_int Class Reference

</classdef> More...

#include <func.h>

Inheritance diagram for punnets_common::func_delta_int:

punnets_common::func_deriveq_base punnets_common::func_base List of all members.

Public Methods

 func_delta_int (real ir, ntime_t it0)
 Constructs func_delta_int with pulse amplitude r, and pulse arrival time t0.

virtual real getMaxGradient (ntime_t) const
 A pure virtual function that returns the max gradient of the function after the time t.

virtual real getValue (ntime_t t) const
virtual real get1stDeriv (ntime_t t) const
 A pure virtual function that returns df(t)/dt.

virtual real get2ndDeriv (ntime_t t) const
 A pure virtual function that returns d2f(t)/dt2.

virtual ntime_t getNextIncontinuity (ntime_t from) const
virtual void getValueDomain (ntime_t t, real &upslope, real &ceil, real &downslope, real &floor) const
 Obtains a zeroth-order linear envelope of the function. floor < f(t+&alpha;) < ceil, f(t)+&alpha;downslope < f(t+&alpha;) < f(t)+&alpha;upslope.

virtual void get1stDerivDomain (ntime_t t, real &upslope, real &ceil, real &downslope, real &floor) const
 Obtains a first--order linear envelope of the function. floor < f(t+&alpha;) < ceil, f(t)+&alpha;downslope < f(t+&alpha;) < f(t)+&alpha;upslope.

virtual void get2ndDerivDomain (ntime_t t, real &upslope, real &ceil, real &downslope, real &floor) const
 Obtains a second-order linear envelope of the function. floor < f(t+&alpha;) < ceil, f(t)+&alpha;downslope < f(t+&alpha;) < f(t)+&alpha;upslope.

virtual std::string getDescription ()
 Obtains a human-readable description string of this function.

virtual bool processMessage (ntime_t t, const message_base &m)
 Processes message_set_lambda and message_set_zero_point messages.

virtual func_delta_int * clone ()
 Allocates and returns another instance of this function.


Detailed Description

</classdef>

An integrated delta function with leak.

A leaky integration of a delta function. $df/dt = r \delta( t - t0 ) - \lambda f$.

Definition at line 316 of file func.h.


Member Function Documentation

virtual ntime_t punnets_common::func_delta_int::getNextIncontinuity ntime_t    from const [inline, virtual]
 

A virtual function that returns the next incontinuity point after the time t. In func_base, the function always returns infinity.

Reimplemented from punnets_common::func_base.

Definition at line 345 of file func.h.

References punnets_common::ntime_t.

00345 { return from < t0 ? t0 : mak::Infinity; };

virtual real punnets_common::func_delta_int::getValue ntime_t    t const [inline, virtual]
 

A function that returns a leaky integrated value between the last pulse arrival time t0 and t. $x = 1/e&lambda;t ( &int;fromtoe&lambda;tf(t) + C)$

Implements punnets_common::func_base.

Definition at line 331 of file func.h.

References punnets_common::ntime_t, and punnets_common::real.

Referenced by processMessage().

00334                 { 
00335 //                  std::cout << "zerop=" << zerop << ", t0=" << t0 << ",t=" << t << std::endl;
00336                     return (zerop < t0 && t0 <= t) ? r * exp( - lambda * (t - t0) ) : 0.0; }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:42:27 2003 for Punnets by doxygen1.2.18