JuliaRandom / JuliaRandom/RandomExtensions.jl

sprand as samples from sparse distribution

オープン
#3 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Julia
スター
19
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。