R: intervals

intervals {adlift} | R Documentation

## intervals

### Description

This function constructs the intervals around the grid values to be used as scaling integrals during the transform

### Usage

    intervals(X, initboundhandl)

### 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.

### Details

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.

### 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).

### Author(s)

Matt Nunes (nunesrpackages@gmail.com), Marina Knight

### See Also

`lengthintervals`

### Examples

    x2<-runif(50)
    x2
    #
    intervals(x2,"reflect")
    #
    #check that the gridpoints are between the interval vector entries...
    #

[Package adlift version 1.4-1 Index]