| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (14 out of 25)

Sample Median


The Sample Median block passes the median of the history of its input values.

If the Sample Median block has an odd number of history values, it passes the middle value. If the block has an even number of history values, it passes the lesser of the two middle values.

Configuring

This is the configuration panel for the Sample Median block.


Attribute Description
Sample Type and
Sample Size

See "Specifying the Size of the History".
Update Type and
Update Size

See "Specifying When to Propagate Data".
Erase History when Reset
See "Specifying What Happens to History Upon Reset".
Require Full History
See "Specifying What to Do With Partial History".
Value on Initialization
See "Specifying an Initial Data Value".

Example

If the history of a Sample Median block has the five points 0.7, 0.9, 0.3, 0.7, and 0.5, it passes on the value 0.7, the middle value. If the history of a Sample Median block has the four points 0.3, 0.9, 0.6, and 0.8, it passes on the value 0.6, the lesser of 0.6 and 0.8.

See Also

For more information on how to use this block, see the sections below.

Click here for more information...
Basic Block Behavior
Specifying a History of Values to Maintain
The Median Input Value block

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (14 out of 25)

Copyright © 1996, Gensym Corporation, Inc.