This function constructs the intervals around the grid values to be used as scaling integrals during the transform
Usage
intervals(X, initboundhandl)
Value
intervals
a vector of length (length(X)+1) with the X values of the endpoints of the intervals (including the edges).
order
order(X) (the sorted observation order).
Arguments
X
The vector of gridpoints.
initboundhandl
the interval construction at the boundary. Takes the value "reflect" for intervals symmetric about the endpoints or "stop" if the endpoint intervals are limited to the edges of the dataset, i.e. the intervals end at the first and last gridpoints respectively.
The function constructs the intervals by sorting the observed gridpoints. The endpoints of the intervals are found as the midpoints between consecutive (sorted) gridpoints. In this way the intervals are not necessarily centered around the gridpoints. The first and last intervals are then modified according to initboundhandl (see above). These intervals represent the support of the initial scaling functions associated to each gridpoint.