diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-25 08:08:07 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-25 08:08:07 +0000 |
commit | 6a7889b07796965b20b93d7ebec8ec1cee083e1f (patch) | |
tree | da1566d97dc977279e2ceff096d1a7a9bc108b4b | |
parent | 99f5df118a790da133f33965cc5f6590285b8b39 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@372822 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lnt/external/stats/stats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lnt/external/stats/stats.py b/lnt/external/stats/stats.py index 89ecf9d..2cb4a27 100644 --- a/lnt/external/stats/stats.py +++ b/lnt/external/stats/stats.py @@ -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)) |