You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/algorithms/new_update_template.jl
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,10 @@ either implement the metropolis_step interface separately for current values of
61
61
and...
62
62
=#
63
63
Base.length(root_sample::MyRootSample) =error("length() not yet implemented for $(typeof(root_sample)). Required for root_update!.") # the number of consecutive samples of root state and position for a single update call
64
-
64
+
#=
65
+
(if you want to be a subtype of UniformRootPositionSample, implement
66
+
radius(::MyRootSample, total_bl::Real) = error("radius() not yet implemented for $(typeof(root_sample)). Required for root_update!.") # the local radius of the uniform proposal. Can be absolute or relative to the total branchlength.
67
+
=#
65
68
#or
66
69
function (root_sample::MyRootSample)(tree::FelNode, models, partition_list, node_message::Vector{<:Partition}, temp_message::Vector{<:Partition})
0 commit comments