-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for USER_HEADER in build system (#233)
* Support for USER_HEADER in build system * Skip in Rust loading tests * Document in 'Customizing BridgeStan' * Fix 'make clean' deleting test file
- Loading branch information
Showing
7 changed files
with
103 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
c-example/example | ||
c-example/example_static | ||
*.exe | ||
make/local | ||
|
||
|
||
# Rust | ||
rust/target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
functions { | ||
real make_odds(data real theta); | ||
} | ||
data { | ||
int<lower=0> N; | ||
array[N] int<lower=0, upper=1> y; | ||
} | ||
parameters { | ||
real<lower=0, upper=1> theta; | ||
} | ||
model { | ||
theta ~ beta(1, 1); // uniform prior on interval 0, 1 | ||
y ~ bernoulli(theta); | ||
} | ||
generated quantities { | ||
real odds; | ||
odds = make_odds(theta); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <ostream> | ||
|
||
double make_odds(const double& theta, std::ostream *pstream__) { | ||
return theta / (1 - theta); | ||
} |