lcf: Creator function for the 'lcf' class

Description Usage Arguments Value Author(s) Examples

Description

The lcf class represents locally constant functions. lcf inherits from the list class.

Usage

1
lcf(bpts, vals)

Arguments

bpts

A numeric vector of the breakpoints between constant pieces. Must be in strictly ascending order.

vals

A numeric vector with the values of the function between the breakpoints. Must be of length one less than bpts.

Value

lcf returns an object of class lcf. Slots are:

bpts

The input

vals

The input

Author(s)

Daniel Reuman, reuman@ku.edu

Examples

1
2
3
x<-1:5
y<-c(.1,5,-3,4)
res<-lcf(x,y)

reumandc/fspack documentation built on May 17, 2019, 7:46 p.m.