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

punnets_common::func_exp Class Reference

#include <func.h>

Inheritance diagram for punnets_common::func_exp:

punnets_common::func_base List of all members.

Public Methods

 func_exp (real ir, real ipsi, real it0)
 Constructs a func_exp with initial value r at time t0, and decay constant psi.

virtual real getMaxGradient (ntime_t 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
 A pure virtual function that returns f(t).

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) 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 func_exp * clone ()
 Allocates and returns another instance of this function.

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


Detailed Description

Exponential function

Exponentially decaying function f(t) = r exp( - &psi; (t - t0) ).

Definition at line 655 of file func.h.


Member Function Documentation

virtual ntime_t punnets_common::func_exp::getNextIncontinuity ntime_t    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 679 of file func.h.

References punnets_common::ntime_t.

00679 { return mak::Infinity; };


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