JuliaRandom / JuliaRandom/RandomExtensions.jl

sprand as samples from sparse distribution

Open
#3 3 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.