Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaustin123 committed Apr 27, 2020
1 parent 4765da9 commit c2a5c0a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,17 @@ To build and run tests, run the following:
cd build/debug
ctest
```

## Examples

```cpp
ppl::Variable<double> x {1.0, 1.5, 1.7, 1.2, 1.5};
ppl::Variable<double> mu, sigma;
auto model = (
mu |= ppl::normal(0., 3.),
sigma |= ppl::uniform(0., 2.),
x |= ppl::normal(mu, sigma)
)

ppl::mh_posterior(model, 1000);
```

0 comments on commit c2a5c0a

Please sign in to comment.