Skip to content

Commit 06d273b

Browse files
committed
Fix testvalue(::SpikeMixture)
1 parent 5fd068c commit 06d273b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/combinators/spikemixture.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ function Base.rand(rng::AbstractRNG, T::Type, μ::SpikeMixture)
3131
μ.s != 1 && throw(ArgumentError("Not a probability measure"))
3232
return (rand(rng, T) < μ.w) * rand(rng, T, μ.m)
3333
end
34+
35+
testvalue::SpikeMixture) = testvalue.m)

0 commit comments

Comments
 (0)