Learn R Programming

Trading (version 3.2)

Chebyshev_distance: Chebyshev distance

Description

Calculates the Chebyshev distance

Usage

Chebyshev_distance(x, y)

Value

The Chebyshev distance of the two vectors

Arguments

x

a vector containing the track record of the underlying asset/strategy

y

a vector containing the track record of the underlying asset/strategy

Author

Tasos Grivas <tasos@openriskcalculator.com>

References

https://en.wikipedia.org/wiki/Chebyshev_distance

Examples

Run this code

x = rnorm(1000)
y = rnorm(1000)

chebyshev_dist = Chebyshev_distance(x, y)

Run the code above in your browser using DataLab