as.function.bmop: Convert an bmop object to a function

Description Usage Arguments Examples

View source: R/1-base-functions.R

Description

Convert an bmop object to a function

Usage

1
2
## S3 method for class 'bmop'
as.function(x, MIN = 0, ...)

Arguments

x

an bmop object

MIN

non negative number, MIN value for evaluation of x

...

compatibility with as.function

Examples

1
2
3
4
5
bmop<-bmop_fit(rnorm(100))
fun<-as.function(bmop)
fun(0)
fun(3)
plot(fun,from=-2,to=+2)

gherardovarando/Rbmop documentation built on May 17, 2019, 4:17 a.m.