dsdive.tx.params: Compute transition parameters for a given depth bin

Description Usage Arguments Examples

View source: R/dsdive.tx.params.R

Description

Computes elements of a transition matrix when given model parameters and time/space locations for a dive model that has 3 stages, descent, bottom/foraging, and ascent.

Usage

1
dsdive.tx.params(depth.bins, d0, s0, beta, lambda)

Arguments

depth.bins

n x 2 Matrix that defines the depth bins. The first column defines the depth at the center of each depth bin, and the second column defines the half-width of each bin.

d0

index of depth bin for which to compute transition parameters

s0

stage for which to compute parameters

beta

vector with directional preference parameters for descent and ascent stages.

lambda

vector with dive rate parameters for the descent, bottom, and ascent stages.

Examples

1
2
3
4
5
6
7
8
9
data('dive.sim')
attach(dive.sim)
attach(params)

dsdive.tx.params(depth.bins = depth.bins, d0 = 3, s0 = 1, 
                 beta = beta, lambda = lambda)

detach(params)
detach(dive.sim)

jmhewitt/dsdive documentation built on May 29, 2020, 5:18 p.m.