pdist: Distance between Phase Points

View source: R/prototype.R

pdistR Documentation

Distance between Phase Points

Description

Computes and returns the distance between two phase points.

Usage

pdist(x, y)

Arguments

x

an object of "pp" class representing a phase point.

y

an object of "pp" class representing another phase point.

Value

A scalar.

Examples

a <- pp(list(x = 1, y = 1))
b <- pp(list(x = 3, y = 4))
pdist(a, b)

ecode documentation built on July 2, 2024, 9:06 a.m.