uniform_key: Uniform key function

View source: R/key_functions.R

uniform_keyR Documentation

Uniform key function

Description

[Experimental]

This function provides the uniform key function for model fitting in distance sampling.

Usage

uniform_key(x, w)

Arguments

x

vector of perpendicular distances from the transect.

w

half width of the strip transect.

Details

This is the uniform key function with parameter sigma. Its expression is given by

g(x) = \frac{1}{w},

for x > 0.

Value

A numeric value corresponding to a given value of x and w.

Author(s)

Jaime Mosquera GutiƩrrez, jmosquerag@unal.edu.co

See Also

Other key functions: half_norm_key(), hazard_rate_key()

Examples

library(EstimationTools)

#----------------------------------------------------------------------------
# Example: Uniform function
uniform_key(x=1, w=100)
curve(uniform_key(x, w=100), from=0, to=10, ylab='g(x)')

#----------------------------------------------------------------------------

EstimationTools documentation built on Dec. 10, 2022, 9:07 a.m.