* This a software code MODULE for a time-of-day clock object.
* The clock may be fixed 12-hour, fixed 24-hour, or dynamically
* configurable between these two types. Clock data can be accessed
* as a binary number representing the number of minutes since midnight
* or a BCD number formatted according to the time-of-day description
* in the TIME MODULE 0404x. The functions work with time-of-day values
* which conform to normally accepted clock values of 1:00 to
* 12:59 BCD / 0 to 719 binary for a 12-hour clock or clock values
* 00:00 to 23:59 BCD / 0 to 1439 binary for a 24-hour clock. On power-up
* the clock is 12:00 BCD / 0 binary for a 12-hour or dynamically
* configurable clock, or 00:00 BCD / 0 binary for a 24-hour clock.
* CONSTRAINTS
* This MODULE does not handle data which is considered out of range by the
* application(i.e. fixed constants which represent error condition)
*
* Maximum weight value must be limited to 128 to prevent an overflow
* condition during the calculation.
*
* The internal data type must be large enough to handle the calculations.
* The maximum possible internal value
* = Max Input Value * (weight - 1) + Max Input Value
* If a maximum weight of 128 is used, the internal data type should be 2
* times the size of the input data type.
* DEFINITION
* This is the header file for a library MODULE used to calculate the median
* of a list of values. It finds the value that would be in the center if
* the list were sorted. If the list contains an even number of values, the
* lower of the two center values is reported. The values themselves are not
* sorted or modified in any way. This algorithm can be used as a filtering
* tool for rejecting noisy data.