Commit Graph

6 Commits

Author SHA1 Message Date
Brendan Tracey
12862f70a9 stat/all: Change all Source to Src (#355)
* stat/all: Change all Source to Src

Fixes original gonum/stat #147
2017-12-19 05:53:59 -07: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
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
Bill Gray
19ba1f6bf5 add triangle distribution and associated tests (#144)
* add triangle distribution and associated tests

* add efficiency, constraint checking, and code convention to triangle distribution

* change to follow Categorical structure exporting approach, add MarshalParameters function, and verify parameter constraints in UnmarshalParameters function

* change to export Triangle.Source and remove from NewTriangle signature, add checkTriangleParameters function, and fix bug

* fix comment, replace ln2 with math.Ln2, and add test for a=c

* fix to return float64 for integer division
2017-07-25 22:46:25 -06:00