calibrar

Sphere function with random noise

This function calculates the Euclidian distance from a point to the origin after a random displacement of its position.

Usage

sphereN(x, sd = 0.1, aggregate = TRUE)

Arguments

Value

The distance from the point x to the origin after a random displacement.

Author

Ricardo Oliveros–Ramos

Examples

sphereN(rep(0, 10))
#> [1] 0.07204325