[LNT] r372822 - [LNT] Simplify population of alldata in lF_oneway
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 01:08:08 PDT 2019
Author: thopre
Date: Wed Sep 25 01:08:07 2019
New Revision: 372822
URL: http://llvm.org/viewvc/llvm-project?rev=372822&view=rev
Log:
[LNT] Simplify population of alldata in lF_oneway
Summary: Use a simpler iteration to populate alldata list in lF_oneway.
Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls
Reviewed By: hubert.reinterpretcast
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D67959
Modified:
lnt/trunk/lnt/external/stats/stats.py
Modified: lnt/trunk/lnt/external/stats/stats.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/external/stats/stats.py?rev=372822&r1=372821&r2=372822&view=diff
==============================================================================
--- lnt/trunk/lnt/external/stats/stats.py (original)
+++ lnt/trunk/lnt/external/stats/stats.py Wed Sep 25 01:08:07 2019
@@ -1563,8 +1563,8 @@ Returns: F value, one-tailed p-value
"""
a = len(lists) # ANOVA on 'a' groups, each in it's own list
alldata = []
- for i in range(len(lists)):
- alldata = alldata + lists[i]
+ for l in lists:
+ alldata.extend(l)
alldata = N.array(alldata)
bign = len(alldata)
sstot = ass(alldata)-(asquare_of_sums(alldata)/float(bign))
More information about the llvm-commits
mailing list