diff --git a/assets/stan_demos/seasonality.stan b/assets/stan_demos/seasonality.stan index 34489a1..85df89d 100644 --- a/assets/stan_demos/seasonality.stan +++ b/assets/stan_demos/seasonality.stan @@ -4,7 +4,7 @@ data { vector[N] y; } transformed data { - vector[F] freq = 365 / linspaced_vector(F, 1, F); + vector[F] freq = 2 * pi() * linspaced_vector(F, 1, F) / 365; } parameters { real sigma;