curvPol: Evaluating the Curvature of Polynomials

Description Usage Arguments Value Author(s) Examples

View source: R/util.R

Description

Function to evaluate the curvature of polynomials

Usage

1

Arguments

x

numerical values at which to evaluate the curvature of polynomials, can be provided in a vector, matrix, array or data frame

beta

numerical vector containing the coefficient of the polynomial

Value

The result of evaluating the curvature of the polynomial at the values in x, returned in the same dimension as x has.

Author(s)

Berwin A Turlach <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
beta <- c(1,2,1)

x <- 0:10
curvPol(x, beta)
str(curvPol(x, beta))

x <- cbind(0:10, 10:0)
curvPol(x, beta)
str(curvPol(x, beta))


x <- data.frame(x=0:10, y=10:0)
curvPol(x, beta)
str(curvPol(x, beta))

MonoPoly documentation built on Dec. 23, 2017, 5:40 p.m.