Dan Kortschak
773146b12d
all: fix repeated word typos in comments
...
Found with m/\b([a-zA-Z]+) \1\b/ and m/\b([a-zA-Z]+)\n[ \t]*// \1\b/.
2019-03-29 07:58:21 +10:30
Vincent Thiery
9922db8293
stat: reduce golint warnings
2018-10-15 20:50:06 +10:30
Dan Kortschak
4eed5b6553
all: replace publicly facing *rand.Rand with rand.Source
2018-05-03 07:40:18 +09:30
Brendan Tracey
57620814e8
stat/sampleuv,stat/samplemv: remove individual functions and rename t… ( #357 )
...
* stat/sampleuv,stat/samplemv: remove individual functions and rename types
2017-12-20 23:38:36 -05:00
kortschak
54a5f6f081
all: fix build and make tests pass with new streams
2017-11-17 12:38:53 +10:30
kortschak
fa0c5aa7bc
all: use golang.org/x/exp/rand instead of math/rand
2017-11-17 11:52:34 +10:30
kortschak
805531d142
all: change capitalization of gonum in license header
2017-11-02 06:54:08 +10:30
kortschak
8c60ecd94c
stat/sampleuv: add missing return
2017-10-26 17:13:47 +10:30
mewmew
7e53ef2fae
all: use fixdocs tool to store package documentation in doc.go
...
Add copyright header to doc.go
Keep original comment style (e.g. line comments and block comments).
Fix doc comments containing multiple line comments.
Remove vanity imports from all files except doc.go.
Fixes #12 .
The source code of fixdocs is located at:
https://play.golang.org/p/7RtYLzldsO
2017-08-16 14:26:00 +02:00
mewmew
ac48587c92
Revert "all: use fixdocs tool to store package documentation in doc.go"
...
This reverts commit b2982a3e50
.
2017-08-16 14:21:05 +02:00
mewmew
b2982a3e50
all: use fixdocs tool to store package documentation in doc.go
...
Add copyright header to doc.go
Keep original comment style (e.g. line comments and block comments).
Fix doc comments containing multiple line comments.
2017-08-16 14:07:36 +02:00
mewmew
5b4711aa15
Revert "all: use fixdocs tool to store package documentation in doc.go"
...
This reverts commit b0a98102dc
.
2017-08-16 14:07:17 +02:00
mewmew
b0a98102dc
all: use fixdocs tool to store package documentation in doc.go
...
Add copyright header to doc.go
Keep original comment style (e.g. line comments and block comments).
2017-08-16 14:02:26 +02:00
mewmew
7eaea7c428
Revert "all: use fixdocs tool to store package documentation in doc.go"
...
This reverts commit 00292b2d57
.
2017-08-16 14:01:36 +02:00
mewmew
00292b2d57
all: use fixdocs tool to store package documentation in doc.go
...
Add copyright header to doc.go
2017-08-16 13:56:50 +02:00
mewmew
a37fef5a6d
Revert "all: use fixdocs tool to store package documentation in doc.go"
...
This reverts commit 963877e5f5
.
2017-08-16 13:54:16 +02:00
mewmew
963877e5f5
all: use fixdocs tool to store package documentation in doc.go
2017-08-16 13:19:00 +02:00
Brendan Tracey
e5448cb39f
stat/all: reduce random size and test tolerance to decrease testing t… ( #181 )
...
* stat/all: reduce random size and test tolerance to decrease testing time.
We were generating a lot of random numbers, which is slow. Decrease the size of those random numbers, and in some cases increase the tolerance to compensate. In a couple cases, pull out code from testFullDist to allow for more fine-grained testing. This decrases:
distmat from 4.5s to 0.5s
distmv from 24.8s to 9s
distuv from 65.2s to 13s
samplemv from 2.8s to 1.2s
sampleuv from 3.5s to 2.1s
2017-08-07 18:09:24 -06:00
Brendan Tracey
abeb6e5a64
stat/distuv: add WithoutReplacement for sampling from a set of intege… ( #158 )
...
stat/distuv: add WithoutReplacement for sampling from a set of integers without replacement
2017-08-02 09:09:42 -06:00
Brendan Tracey
c0fcfc5b7f
stat/sampleuv: set src appropriately in NewWeighted. ( #162 )
...
Fixes #161 .
2017-08-01 17:57:22 -06:00
Brendan Tracey
39acce824a
stat/sampleuv: reduce weighted test size. ( #160 )
...
This reduces the test time by about two orders of magnitude, from 20+ secounds to 0.7s
2017-08-01 06:41:23 -06:00
kortschak
7af70dd796
all: fix many go vet errors
2017-06-20 16:29:35 +09:30
kortschak
a1347c0243
all: fix spelling errors
2017-06-20 16:29:35 +09:30
kortschak
37850ca814
all: add canonical imports
2017-05-25 16:07:18 +09:30
Brendan Tracey
d33397aa65
all: change import paths
2017-05-23 00:03:03 -06:00
Brendan Tracey
61c782d390
stat: imported stat as a subtree
2017-05-23 00:02:52 -06:00