Revision 819f01b12701f9d8d85f19fcb3d73a86011931b5 authored by Rok Cesnovar on 01 March 2021, 19:15:33 UTC, committed by Rok Cesnovar on 01 March 2021, 19:15:33 UTC
1 parent ffd35e9
normal_mixture.stan
transformed data {
real<lower=0,upper=1> theta = 0.25;
vector[2] mu = [0, 4]';
vector<lower=0>[2] sigma = [0.5, 3]';
}
parameters {
real y;
}
model {
target += log_mix(theta,
normal_lpdf(y | mu[1], sigma[1]),
normal_lpdf(y | mu[2], sigma[2]));
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...