SphereN: Sphere function with random noise

Description Usage Arguments Value Author(s) Examples

View source: R/calibrar-test_functions.R

Description

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

Usage

1
SphereN(x, sd = 0.1, aggregate = TRUE)

Arguments

x

The coordinates of the point

sd

The standard deviation of the noise to be added to the position of x, a normal distribution with mean zero is used.

aggregate

If aggregate is TRUE the distance is returned, otherwise the size of the projection of the distance among each axis.

Value

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

Author(s)

Ricardo Oliveros–Ramos

Examples

1
SphereN(rep(0, 10))

calibrar documentation built on May 2, 2019, 10:58 a.m.