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

MODEL::AVGDwellProbe Class Template Reference

#include <dwellprobe.h>

Inheritance diagram for MODEL::AVGDwellProbe:

Inheritance graph
Collaboration diagram for MODEL::AVGDwellProbe:

Collaboration graph
List of all members.

Public Types

typedef ODESystem<dims,nelem,

Public Methods

 AVGDwellProbe (TimeFrame &T, const string &n, system &sys, integer v, number threshold, number width=0.1, bool below=true)
const number& switches (void)
const number& average (void)
void probe (void)
 NO_COPY (AVGDwellProbe)

Private Attributes

system* my_sys
integer var
number th
number w
number avg
number avgn
integer more_or_less
bool from_top
bool from_bottom
bool lower
number last_t

Detailed Description

template<integer dims, typename nelem = number, class NT = NumericTraits<nelem,dims>> class MODEL::AVGDwellProbe

AVGDwellProbe writes out the current running average of the dwell time; currently only for up switches (bottom state).

Definition at line 209 of file dwellprobe.h.

Constructor & Destructor Documentation

AVGDwellProbe ( TimeFrame & T,
const string & n,
system & sys,
integer v,
number threshold,
number width = 0.1,
bool below = true ) [inline]

By default, a 2x10% width (around the threshold) is assumed

Definition at line 215 of file dwellprobe.h.

Member Function Documentation

NO_COPY ( AVGDwellProbe<dims, nelem, NT> )

We decouple the two kinds of probes (u & down). Agreed: this is wasteful and in the future I'll do the right thing)

const number & switches ( void ) [inline]

: assumed to be outside of the threshold

Definition at line 235 of file dwellprobe.h.

Member Data Documentation

integer more_or_less [private]

Tells you where the system is : 1) above threshold+w -1) below threshold-w 0) inside DMZ

Definition at line 315 of file dwellprobe.h.

The documentation for this class was generated from the following file:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website:

Last update: June 2002.

Looking for Open Source? Check out SourceForge Logo !