Skip to content

Commit

Permalink
remove bounded segreg
Browse files Browse the repository at this point in the history
  • Loading branch information
colinpmillar authored Feb 28, 2019
1 parent 6aa57fa commit 2ae9c57
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions R/StockRectruit_Functions_Likelihood.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ Smooth_hockey <- function(ab, ssb, gamma = 0.1) {
}


Segreg_bounded <- function(ab, ssb) {
if (ab$b < Bloss) {
rep(1e-9, length(ssb))
} else {
log(ifelse(ssb >= ab$b, ab$a * ab$b, ab$a * ssb))
}
}



######
# This function calculates the log likelihood of the stock recruit relationship
Expand Down

0 comments on commit 2ae9c57

Please sign in to comment.