Skip to content

Commit

Permalink
fix issue for large BI rbi transmitters
Browse files Browse the repository at this point in the history
  • Loading branch information
baktoft committed Oct 3, 2019
1 parent 0f170c7 commit f02901d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: yaps
Title: Track estimation using YAPS (Yet Another Positioning Solver)
Version: 1.1.0
Version: 1.1.1
Authors@R: person("Henrik", "Baktoft", email = "[email protected]", role = c("aut", "cre"))
Description: Estimate track from acoustic data using YAPS (doi:10.1038/s41598-017-14278-z).
Depends: R (>= 3.4.3)
Expand Down
2 changes: 1 addition & 1 deletion src/yaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Type objective_function<Type>::operator() ()
}
} else if(pingType == "rbi"){
for(int i = 1; i < np; ++i) {
nll -= dnorm(top(i), top(i-1) + (rbi_max - rbi_min)/2, Type(30.0), true);
nll -= dnorm(top(i), top(i-1) + (rbi_max - rbi_min)/2, (rbi_max-rbi_min)/2, true);
nll += bi_penalty * (softplus((top(i) - top(i-1)) - rbi_max, bi_epsilon) + softplus(rbi_min - (top(i) - top(i-1)), bi_epsilon));
}
}
Expand Down

0 comments on commit f02901d

Please sign in to comment.