find_trapped: Finds any possible adult mosquitoes that are trapped by a...

Description Usage Arguments Value

View source: R/trap_functions.R

Description

Finds any possible adult mosquitoes that are trapped by a particular trap for a particular timestep. If mosquitoes are within distance phi of a trap, there is a 0.5 probability that a mosquito is trapped. Only adults can be trapped.

Usage

1
find_trapped(traplat, traplong, phi, mozzie.dt, prob)

Arguments

traplat

Lat of a particular trap.

traplong

Long of a particular trap.

phi

Distance that a mosquito is susceptible to a trap.

mozzie.dt

Data.table of adult mosquitoes.

prob

Probability of being trapped when within trap radius.

Value

Vector of mosquito IDs to be trapped. Expect to be length 0 for the first few days. If length 0 return -1.


beeysian/cairnsmozzie documentation built on Feb. 15, 2021, 12:12 a.m.