frontness {swaRmverse}R 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)


[Package swaRmverse version 0.1.0 Index]