setMinimumZfromConstant: Set minimum z-axis value to a constant.

View source: R/mkdeFunctions.R

setMinimumZfromConstantR Documentation

Set minimum z-axis value to a constant.

Description

Set the lower bounds in the z-dimension for each location in the x and y dimensions to a constant value.

Usage

setMinimumZfromConstant(mkde.obj, val)	

Arguments

mkde.obj

2D or 3D MKDE object created with initialize3DMKDE or initialize3DMKDE, respectively

val

The value at which the lower bound should be set for all locations in the x and y dimensions.

Details

Obviously, the lower bound must be less than the upper bound.

Value

An updated MKDE list object is returned.

Author(s)

Jeff A. Tracey, PhD
USGS Western Ecological Research Center, San Diego Field Station
jatracey@usgs.gov
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research
jsheppard@sandiegozoo.org

Examples

library(raster)
data(dugongdem)
cell.sz <- mean(res(dugongdem))
ext <- extent(dugongdem)
nx <- ncol(dugongdem)
ny <- nrow(dugongdem)
mkde.obj <- initializeMKDE3D(ext@xmin, cell.sz, nx, ext@ymin, cell.sz,
ny, min(values(dugongdem), na.rm=TRUE), 50.0, 15)
mkde.obj <- setMinimumZfromConstant(mkde.obj, -20.0)

mkde documentation built on July 9, 2023, 6:41 p.m.