Learn R Programming

CspStandSegmentation (version 0.1.2)

p_dist: Point distance function

Description

calculates euclidean distances for n dimensions

Usage

p_dist(p1, p2)

Value

the distance between the two points

Arguments

p1

point 1

p2

point 2

Examples

Run this code
p_dist(c(0,0), c(3,4))

Run the code above in your browser using DataLab