JuliaRandom / JuliaRandom/RandomExtensions.jl
sprand as samples from sparse distribution
Open
- Dominant language
- Julia
- Stars
- 19
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I was thinking, in the spirit of this package, maybe `rand(Normal(),SparseMatrixCSC,p,m,n) ` could be better expressed as `rand(Bernoulli(p,Normal()),SparseMatrixCSC,m,n)` where `Bernoulli(p, Normal())` would be the "Gauss-Bernoulli" or "Spike-and-Slab" mixture distribution
P(x) = (1-p) delta(x)+ p Normal(x)
It seems to make things a bit more generic.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.