From 3b66e7cf04dd3ea1bdb24febcdccc05cc353c2bf Mon Sep 17 00:00:00 2001 From: "Jachym.Barvinek" Date: Wed, 31 Jul 2024 21:48:20 +0200 Subject: [PATCH] stan demos --- assets/stan_demos/seasonality.stan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;