Skip to content

Commit

Permalink
efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot committed Mar 22, 2018
1 parent aa65721 commit db145a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ end
***Mortality per generation***
- `N`: Host population size
- `P`: Survivors from parasitism
- `P`: Parasitoid population size
- `p`: parameters list
Return : `kvalue`: mortality per generation
Expand All @@ -113,11 +113,13 @@ end
- `N`: Host population size
- `P`: Parasitoid population size
- `S`: Survivors from parasitism
- `p`: parameters list
Return : `A`: Per capita searching efficiency at generation t
"""
function efficiency(N::Float64,P::Float64, S::Float64)
function efficiency(N::Float64,P::Float64, p)
pescape = escape_probability(N,P,p)
S = pescape * N
prop = N/S
A = 1.0/P * log(prop)
return A
Expand Down

0 comments on commit db145a0

Please sign in to comment.