plcf: Creator function for the 'plcf' class

Description Usage Arguments Value Author(s) Examples

Description

The plcf class represents piecewise linear continuous functions. plcf inherits from the list class.

Usage

1
plcf(bpts, bptvals)

Arguments

bpts

A numeric vector of the breakpoints between linear pieces

bptvals

A numeric vector with the values of the function at the breakpoints

Value

plcf returns an object of class plcf. Slots are:

bpts

The input, sorted into ascending order

bptvals

The input, rearranged so it still corresponds to the elements of bpts

Author(s)

Daniel Reuman, reuman@ku.edu

Examples

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

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