Skip to content

Commit

Permalink
silencing the print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bomeara committed Dec 29, 2023
1 parent a60e6e7 commit 7a05771
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 183 deletions.
6 changes: 3 additions & 3 deletions R/dentist.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ dent_walk <- function(par, fn, best_neglnL, confidence_level = 0.95, delta=NULL,
acceptances_run <- utils::tail(acceptances[!is.na(acceptances)],adjust_width_interval)
if(sum(acceptances_run)/length(acceptances_run) > 0.3) {
sd_vector <- sd_vector * 1.5
print("increasing proposal width for all parameters")
#print("increasing proposal width for all parameters")
if(debug) {
print("changed proposals")
print(data.frame(old=sd_original, new=sd_vector))
Expand All @@ -175,7 +175,7 @@ dent_walk <- function(par, fn, best_neglnL, confidence_level = 0.95, delta=NULL,
if(sum(acceptances_run)/length(acceptances_run) < 0.1) {

sd_vector <- sd_vector * 0.8
print("decreasing proposal width for all parameters")
#print("decreasing proposal width for all parameters")
if(debug) {
print("changed proposals")
print(data.frame(old=sd_original, new=sd_vector))
Expand All @@ -193,7 +193,7 @@ dent_walk <- function(par, fn, best_neglnL, confidence_level = 0.95, delta=NULL,
not_past_bounds <- any(all_results_range==good_enough_results_range) # single parameter
}
if(any(not_past_bounds)) {
print("increasing proposal width for some parameters")
#print("increasing proposal width for some parameters")
sd_vector[not_past_bounds] <- sd_vector[not_past_bounds]*1.5
if(debug) {
print("changed proposals")
Expand Down
4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pandoc: 3.1.8
pandoc: 3.1.11
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
last_built: 2023-12-16T16:08Z
last_built: 2023-12-29T18:54Z

Binary file modified docs/reference/Rplot001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/Rplot002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/dent_likelihood-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/dent_walk-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/dent_walk-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
349 changes: 171 additions & 178 deletions docs/reference/dent_walk.html

Large diffs are not rendered by default.

0 comments on commit 7a05771

Please sign in to comment.