slope.psp: Calculate slopes for a spatstat psp object

View source: R/psp.slope.intercept.R

slope.pspR Documentation

Calculate slopes for a spatstat psp object

Description

Calculates a slope for each line segment in a psp object

Usage

slope.psp(x, orthogonal = FALSE)

Arguments

x

a psp object

orthogonal

logical indicating whether a slope for orthogonal line to x should be returned instead of slope for x

Details

The function assumes that each line segment has an infinite domain and follows the line equation $y = slope * x + intercept$.

Value

Returns a numeric vector containing slopes of line segments in the same order than x

Author(s)

Mikko Vihtakari


MikkoVihtakari/sclero documentation built on March 21, 2023, 11:48 a.m.