decay.func: Exponential decay function

Description Usage Arguments Value Author(s) See Also

View source: R/hmob_funcs.R

Description

This function calculates exponential decay of a data value y (e.g. trip duration) given the intercept N0 and decay rate λ parameters using the functional form: N(y) = N0 exp(-λ*y). If y = duration, the function calculates the number of trips counted for a given duration.

Usage

1
decay.func(N0, lambda, y)

Arguments

N0

intercept (baseline number of expected trips at y=0)

lambda

decay rate

y

a scalar or vector giving the data value(s) (e.g. trip duration)

Value

A scalar or vector of N(y)

Author(s)

John Giles

See Also

Other simulation: calc.hpd(), calc.prop.inf(), calc.prop.remain(), calc.timing.magnitude(), calc.wait.time(), get.age.beta(), get.beta.params(), sim.TSIR.full(), sim.TSIR(), sim.combine.dual(), sim.combine(), sim.gravity.duration(), sim.gravity(), sim.lambda(), sim.pi(), sim.rho(), sim.tau()


gilesjohnr/hmob documentation built on Aug. 8, 2020, 1:26 a.m.