diff options
author | Rafael Laboissière <rafael@debian.org> | 2024-03-22 07:33:29 -0300 |
---|---|---|
committer | Rafael Laboissière <rafael@debian.org> | 2024-03-22 07:33:29 -0300 |
commit | 0637609be30f6abac62e8072074d0bbeb66f9f1b (patch) | |
tree | cd36e73132243fda7e40868a1330f1f0eb0ac61e | |
parent | 90c750ebe0c4943f42688186164cfa100c566947 (diff) |
Make the BIST for glmfit reproducible
Forwarded: https://github.com/gnu-octave/statistics/pull/139
Applied-Upstream: https://github.com/gnu-octave/statistics/commit/b18db0fe7df0f09790a82547bb8e683507f9c0ae
Last-Update: 2024-03-08
Gbp-Pq: Name glmfit-reproducible-bist.patch
-rw-r--r-- | inst/glmfit.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inst/glmfit.m b/inst/glmfit.m index 2e5b819..75b6d32 100644 --- a/inst/glmfit.m +++ b/inst/glmfit.m @@ -133,6 +133,7 @@ endfunction %! X = rand (50, 1); %! b_true = [0.4; 1.5]; %! mu_true = exp (b_true(1) + b_true(2) * X); +%! randp ("seed", 1); %! y = poissrnd (mu_true); %! b = glmfit(X, y, "poisson", "link", "log"); %! assert(b(1), b_true(1), 0.5); |