ThresholdMonitor
ptolemy.domains.ct.lib.ThresholdMonitor

Output true if the input value is in the interval [a, b], which is centered at thresholdCenter and has width thresholdWidth. This actor controls the integration step size so that the input does not cross the threshold without producing at least one true output. The output can be used as a pure event to trigger other events or state transitions. When the input crosses the interval in one step, this actor will report that the integration step is not accurate and refines the new step size by bisecting the old step size.

Author(s): Jie Liu
Version:$Id: ThresholdMonitor.java,v 1.49 2006/03/28 23:59:54 cxh Exp $
Pt.Proposed Rating:Red (liuj)
Pt.Accepted Rating:Red (cxh)


input
The input port, single port with type double.

output
The output port, single port with type boolean.



thresholdWidth
The parameter for the width of the threshold.

thresholdCenter
The parameter for the center of the threshold.