swh:1:snp:81eadaa089e8253d8469bcef66aa332632c6c669
Tip revision: 3f1c6b45c918375fc2b65bb2a7d6e3590979cb61 authored by HwB on 12 December 2011, 00:00:00 UTC
version 0.9.1
version 0.9.1
Tip revision: 3f1c6b4
humps.R
##
## h u m p s . R Matlab Test Function
##
humps <- function(x) {
if (missing(x))
x <- seq(0.0, 1.0, by=0.05)
stopifnot(is.numeric(x))
1/((x-0.3)^2 + 0.01) + 1/((x-0.9)^2 + 0.04) - 6
}
sinc <- function(x) {
stopifnot(is.numeric(x))
sin(pi * x) / (pi * x)
}