#include <func.h>
Inheritance diagram for punnets_common::func_delta_int:

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+α) < ceil, f(t)+αdownslope < f(t+α) < f(t)+α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+α) < ceil, f(t)+αdownslope < f(t+α) < f(t)+α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+α) < ceil, f(t)+αdownslope < f(t+α) < f(t)+α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. | |
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.
|
|
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; };
|
|
|
A function that returns a leaky integrated value between the last pulse arrival time t0 and t. $x = 1/eλt ( ∫fromtoeλ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; }
|
1.2.18