Learn R Programming

mrds (version 2.3.0)

integratepdf: Numerically integrate pdf of observed distances over specified ranges

Description

Computes integral of pdf of observed distances over x for each observation. The method of computation depends on argument switches set and the type of detection function.

Usage

integratepdf(
  ddfobj,
  select,
  width,
  int.range,
  standardize = TRUE,
  point = FALSE,
  left = 0,
  doeachint = FALSE
)

Value

vector of integral values - one for each observation

Arguments

ddfobj

distance detection function specification

select

logical vector for selection of data values

width

truncation width

int.range

integration range matrix; vector is converted to matrix

standardize

logical used to decide whether to divide through by the function evaluated at 0

point

logical to determine if point count (TRUE) or line transect (FALSE)

left

left truncation width

doeachint

calculate each integral numerically

Author

Jeff Laake & Dave Miller