frontness: Frontness

View source: R/relative_pos.R

frontnessR Documentation

Frontness

Description

Given the bearing angle of an object to another, this function calculates the frontness, a value that ranges from 0 to 1 and represents how in front the focal object is from its neighbor.

Usage

frontness(bs)

Arguments

bs

A vector of bearing angles (in rad) between objects.

Value

A vector of the same length as bs representing the frontness of a focal object to its neighbor.

Author(s)

Marina Papadopoulou, m.papadopoulou.rug@gmail.com

See Also

nnba

Examples

bs <- runif(25, max = pi)
frontness(bs)


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.