Every function
is a piecewise constant function,
albeit with an infinite number of pieces. We are, however, concerned with functions
which may be described using a finite number of pieces.
All globally constant functions are piecewise constant.
We will consider such functions to be extended real functions,
so that
.
An example is
:
with
Consider the floor function,
,
which is a piecewise constant function.
An example evaluation follows:
| Jeff Tupper | March 1996 |