File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 766
766
767
767
768
768
"""
769
- islinked(vi::VarInfo, spl::Sampler)
769
+ islinked(vi::VarInfo, spl::Union{ Sampler, SampleFromPrior} )
770
770
771
771
Check whether `vi` is in the transformed space for a particular sampler `spl`.
772
772
@@ -775,11 +775,11 @@ Turing's Hamiltonian samplers use the `link` and `invlink` functions from
775
775
(for example, one bounded to the space `[0, 1]`) from its constrained space to the set of
776
776
real numbers. `islinked` checks if the number is in the constrained space or the real space.
777
777
"""
778
- function islinked (vi:: UntypedVarInfo , spl:: Sampler )
778
+ function islinked (vi:: UntypedVarInfo , spl:: Union{ Sampler, SampleFromPrior} )
779
779
vns = _getvns (vi, spl)
780
780
return istrans (vi, vns[1 ])
781
781
end
782
- function islinked (vi:: TypedVarInfo , spl:: Sampler )
782
+ function islinked (vi:: TypedVarInfo , spl:: Union{ Sampler, SampleFromPrior} )
783
783
vns = _getvns (vi, spl)
784
784
return _islinked (vi, vns)
785
785
end
You can’t perform that action at this time.
0 commit comments