pdist {ecode}R 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)

[Package ecode version 0.1.0 Index]