View source: R/key_functions.R
uniform_key | R Documentation |
This function provides the uniform key function for model fitting in distance sampling.
uniform_key(x, w)
x |
vector of perpendicular distances from the transect. |
w |
half width of the strip transect. |
This is the uniform key function with parameter
sigma
. Its expression is given by
g(x) = \frac{1}{w},
for x > 0.
A numeric value corresponding to a given value of x
and
w
.
Jaime Mosquera GutiƩrrez, jmosquerag@unal.edu.co
Other key functions:
half_norm_key()
,
hazard_rate_key()
library(EstimationTools)
#----------------------------------------------------------------------------
# Example: Uniform function
uniform_key(x=1, w=100)
curve(uniform_key(x, w=100), from=0, to=10, ylab='g(x)')
#----------------------------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.