Skip to content

Commit

Permalink
Update initial proposal ll in hiatus case
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Jul 16, 2024
1 parent 971dd92 commit 3780a5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Chron"
uuid = "68885b1f-77b5-52a7-b2e7-6a8014c56b98"
authors = ["C. Brenhin Keller <[email protected]>"]
version = "0.6.2"
version = "0.6.3"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Expand Down
4 changes: 2 additions & 2 deletions src/StratMetropolis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,8 @@
end

# Add log likelihood for hiatus duration
duration = @. min(model_ages[closest_hiatus_unique - 1] - model_ages[closest_hiatus_unique], Hiatus_duration)
ll += normpdf_ll(Hiatus_duration, Hiatus_duration_sigma, duration)
duration = @. model_ages[closest_hiatus_unique - 1] - model_ages[closest_hiatus_unique]
ll += normcdf_ll(Hiatus_duration, Hiatus_duration_sigma, duration)

# Preallocate variables for MCMC proposals
llₚ=ll
Expand Down

2 comments on commit 3780a5c

@brenhinkeller
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register
Release notes:

  • Minor bugfix

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/111133

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.3 -m "<description of version>" 3780a5cad31c1903a8ba113d0ad7a14b3dbe97d6
git push origin v0.6.3

Please sign in to comment.