Skip to content

Commit 6357568

Browse files
author
Thomas Preud'homme
committed
[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 llvm-svn: 372822
1 parent 1fc256d commit 6357568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnt/external/stats/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,8 @@ def lF_oneway(*lists):
15631563
"""
15641564
a = len(lists) # ANOVA on 'a' groups, each in it's own list
15651565
alldata = []
1566-
for i in range(len(lists)):
1567-
alldata = alldata + lists[i]
1566+
for l in lists:
1567+
alldata.extend(l)
15681568
alldata = N.array(alldata)
15691569
bign = len(alldata)
15701570
sstot = ass(alldata)-(asquare_of_sums(alldata)/float(bign))

0 commit comments

Comments
 (0)