create_lowhull: create_lowhull

Description Usage Arguments Value Examples

View source: R/utils.R

Description

given a (sorted) set of points, create the lower hull function

Usage

1

Arguments

x

x points

f

represent f(x)

Value

a function that calculates the lowerhull for a function

Examples

1
2
3
4
5
log_f <- function(x) log(dnorm(x))
x <- seq(-3, 3, by=1)
y <- log_f(x)
l <- create_lowhull(x, y)
l(0)

andrea2910/ars documentation built on May 17, 2019, 3:13 a.m.