create_upphull: create_upphull

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1

Arguments

x

x points

f

represent f(x)

Value

a function that calculates the upperhull 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)
u <- create_upphull(x, y)
u(0)

andrea2910/ars documentation built on June 17, 2021, 3:32 a.m.