### Recall the SKZS example of the Sinc function
# Setup the data
u <- seq(-3*pi, 3*pi, 3*pi/100)
v <- u
x1 <- sample(u, size = 4000, replace = TRUE)
x2 <- sample(v, size = 4000, replace = TRUE)
d <- data.frame(cbind(x1,x2))
df <- unique(d)
df$z <- sin(sqrt(df$x1^2 + df$x2^2)) / sqrt(df$x1^2 + df$x2^2)
df$z[is.na(df$z)] <- 1
# Return the bounding values for each argument
argskzs(df, 1, 2)
Run the code above in your browser using DataLab