calcWindowSizes {nimbleSCR}R Documentation

Window size calculation

Description

Calculates the sizes of a set of windows based on their lower and upper coordinates of each dimension. Can be applied to detection and habitat windows.

Usage

calcWindowSizes(lowerCoords, upperCoords)

Arguments

lowerCoords

Matrix of lower x- and y-coordinates of all windows. One row for each window.

upperCoords

Matrix of upper x- and y-coordinates of all windows. One row for each window.

Value

A vector of window sizes.

Author(s)

Wei Zhang

Examples

lowerCoords <- matrix(c(0, 0, 1, 0, 0, 1, 1, 1), nrow = 4, byrow = TRUE)
upperCoords <- matrix(c(1, 1, 3, 1, 1, 4, 3, 4), nrow = 4, byrow = TRUE)
calcWindowSizes(lowerCoords, upperCoords)



[Package nimbleSCR version 0.2.1 Index]