Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sB05555/Dice.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice.jl

Unit Tests codecov

A Julia prototype implementation of the Dice probabilistic programming language. See https://github.com/SHoltzen/dice

Installation

Install Julia 1.7 or higher using these instructions.

Clone the repository and start julia in project mode for current folder:

cd Dice.jl
julia --project

Install Dice and update dependencies (one can also use precompile or build):

] up

Press CTRL-C or backspace to exit from the pkg terminal and return to Julia REPL.

One can now run a program from the Julia REPL:

include("examples/graph_reachability.jl")

Or from the command line:

julia --project examples/graph_reachability.jl

FIX
DistUInt() takes in a value that indicates the range of probabilities (such as through a vector of coin flips or an integer) and returns a discrete distribution that includes the probability for each integer value. You can specify the bit size with {} if you want a unique size - otherwise, there are the built-in sizes of 8, 16 and 32, appropriately labeled DistUInt8, DistUInt16 and DistUInt32 respectively.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%