|
From: peterpall <pet...@us...> - 2026-05-13 11:04:27
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Maxima CAS".
The branch, master has been updated
via 83e21abcc8f3959879ab27ae8ae1c5d73ca1965e (commit)
via e6e77d842e70adab201bb96f2a2d4416dfca2350 (commit)
via 994d45504f04124f11bf137c75a0976202296cc2 (commit)
from 5f680f4fdbc1c0afd21107d92553f601a8d66caf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 83e21abcc8f3959879ab27ae8ae1c5d73ca1965e
Author: Gunter Königsmann <gu...@pe...>
Date: Wed May 13 13:03:08 2026 +0200
wrstcse: Update the wc_distrib2rssparams test
The test suite still expected the result of the buggy function.
diff --git a/share/contrib/rtest_wrstcse.mac b/share/contrib/rtest_wrstcse.mac
index 3f4bc7752..1f9f2e1e2 100644
--- a/share/contrib/rtest_wrstcse.mac
+++ b/share/contrib/rtest_wrstcse.mac
@@ -159,7 +159,7 @@ wc_ewc_simplify(5*(abs(tol[1])+tol[1])-5*(tol[1]-abs(tol[1]))+tol[2]);
5*(abs(tol[1])+tol[1])-5*(tol[1]-abs(tol[1]))+tol[2];
wc_distrib2rssparams([1,2,2,1]);
-wc_rssparams(1/3,3/2);
+wc_rssparams(1/sqrt(3),3/2);
vals:[R_1=100*(1+1/100*tol["R1"])*(1+1/100*tol["Temp"]),R_2=200*(1+1/100*tol["R2"])*(1+1/100*tol["Temp"])];
[R_1 = 100*(tol["R1"]/100+1)*(tol["Temp"]/100+1),
commit e6e77d842e70adab201bb96f2a2d4416dfca2350
Author: Gunter Königsmann <gu...@pe...>
Date: Wed May 13 13:00:43 2026 +0200
wrstcse: Avoid recalculating the typical value
diff --git a/share/contrib/wrstcse.mac b/share/contrib/wrstcse.mac
index d932575c4..5d70a4d29 100644
--- a/share/contrib/wrstcse.mac
+++ b/share/contrib/wrstcse.mac
@@ -349,7 +349,7 @@ wc_mintypmax_rss(x,sigmas):=float(block([rssparams:wc_getrssparams(x)],
wc_mintypmax_rss_percent(x,sigmas):=block([rssparams:wc_getrssparams(x)],
[
'min=((rssparams@mu-sigmas*rssparams@sigma)/rssparams@mu-1)*100*"%",
- 'typ=wc_typicalvalues(x),
+ 'typ=rssparams@mu,
'max=((rssparams@mu+sigmas*rssparams@sigma)/rssparams@mu-1)*100*"%",
Fail=float(1-(erf(sigmas/sqrt(2))))*1e6*"ppm"
]
commit 994d45504f04124f11bf137c75a0976202296cc2
Author: Gunter Königsmann <gu...@pe...>
Date: Wed May 13 12:57:20 2026 +0200
share/contrib/wrstcse.mac: fix standard deviation calculation in wc_distrib2rssparams
wc_distrib2rssparams previously calculated the sample variance instead of
the standard deviation when returning RSS parameters. This commit adds the
missing sqrt() wrapper.
diff --git a/share/contrib/wrstcse.mac b/share/contrib/wrstcse.mac
index 9f7be7eb9..d932575c4 100644
--- a/share/contrib/wrstcse.mac
+++ b/share/contrib/wrstcse.mac
@@ -318,7 +318,7 @@ wc_distrib2rssparams(data):=block([wc_mu,wc_sigma,wc_len],
wc_len:length(data),
if wc_len<2 then error("wc_distrib2rssparams: Input data needs to be at least 2 samples long"),
wc_mu:lsum(i,i,data)/wc_len,
- wc_sigma:lsum((i-wc_mu)^2,i,data)/(wc_len-1),
+ wc_sigma:sqrt(lsum((i-wc_mu)^2,i,data)/(wc_len-1)),
return(new(wc_rssparams(wc_sigma,wc_mu)))
);
-----------------------------------------------------------------------
Summary of changes:
share/contrib/rtest_wrstcse.mac | 2 +-
share/contrib/wrstcse.mac | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Maxima CAS
|