Commit Graph

5756 Commits

Author SHA1 Message Date
Dan Kortschak
2bf857dc70 graph: use iterators directly rather than copying into []graph.Node
There are still uses in test code; these can remain since they simplify
that code.
2020-07-02 07:47:46 +09:30
Dan Kortschak
91d83a4f35 graph/iterator: add fast paths for node slices and add tests
Fix bugs in NodeSlice methods:

- ImplicitNodes did not return nil for an empty set of nodes.
- OrderedNodes returned one too many nodes if Next has been called.
2020-07-02 07:47:46 +09:30
Dan Kortschak
0fd78a9919 graph: fix nodeIteratorPair bug revealed by lazy iterators 2020-07-02 07:47:46 +09:30
Dan Kortschak
a961bdeed7 graph/multi: use lazy edge-based node iterator for From, To and Nodes methods 2020-07-02 07:47:46 +09:30
Dan Kortschak
f0f9a9eaf8 graph/simple: use lazy edge-based node iterator for From, To and Nodes methods 2020-07-02 07:47:46 +09:30
Dan Kortschak
d4ef54c821 graph/iterator: implement edge and line based lazy node iterator 2020-07-02 07:47:46 +09:30
Roman Werpachowski
c8de933feb stat/distuv: add ScoreInput implementations for Uniform and Triangle
Also fixes a bug in Laplace ScoreInput, and tests existing ScoreInput implementations.
2020-07-01 09:50:39 +01:00
Dan Kortschak
48db94ddb5 mat: add SolveTo and SolveVecTo to SVD 2020-07-01 10:57:37 +09:30
Vladimir Chalupecky
0f360d3c36 mat: clarify docs for Dense.Solve and VecDense.SolveVec 2020-06-30 15:04:40 +02:00
Roman Werpachowski
4605b656e4 stat/distuv: fix Weibull LogProb and test function absEq 2020-06-30 09:27:54 +01:00
Roman Werpachowski
d37b74410a stat/distuv: add Score method to Triangle and Uniform
Also tests and fixes Laplace Score.
2020-06-29 09:34:42 +01:00
Roman Werpachowski
16c25fb461 stat/distuv: provide complete InverseGamma test coverage 2020-06-23 12:02:01 +01:00
Roman Werpachowski
c282ef897a mathext: fix formula in GammaIncRegComp comment
* provide the correct formula in documentation for GammaIncRegComp

* fix indentation.
2020-06-23 11:59:57 +01:00
Roman Werpachowski
4cf9025fcf Provide complete test coverage for Gumbel distribution. Fix (#1360)
documentation.
2020-06-18 23:36:03 +01:00
Roman Werpachowski
5ebac862cb stat/distuv: tighten test tolerances and refactor integration checks 2020-06-16 21:59:45 +01:00
Roman Werpachowski
e5411ffa28 stat/distuv: run tests in parallel 2020-06-16 08:57:16 +01:00
Roman Werpachowski
ccd21328c4 stat/distuv: Provide full test coverage for Gamma distribution and small fixes (#1357)
stat/distuv: provide full test coverage for Gamma distribution and small fixes

* Removed redundant calculations in the small alpha version of Rand.
* Lowered the threshold for small alpha to 0.2 in accordance with
  https://www4.stat.ncsu.edu/~rmartin/Codes/rgamss.R.
* Added the option to pass integration bounds to PDF normalisation check.
* Other small fixes.
2020-06-16 01:26:05 +01:00
Dan Kortschak
8331aaab06 graph/path: fix documentation on Shortest 2020-06-14 17:45:15 +09:30
Dan Kortschak
72a397e184 graph/path: reduce indexing into next in Shortest.To 2020-06-14 17:45:15 +09:30
Roman Werpachowski
6458c49bdf stat/distuv: add missing tests for Mode and fix bugs in some implementations
* fix LogNormal.Mode
* fix Weibull.Mode
2020-06-14 08:32:23 +09:30
Roman Werpachowski
abc50e7323 stat/distuv: provide complete test coverage for F distribution 2020-06-12 21:27:03 +09:30
Dan Kortschak
444540f975 CONTRIBUTING: update link to moved patch review article 2020-06-09 15:44:44 +09:30
Roman Werpachowski
c250a82c6e stat/distuv: improve accuracy of Exponential.CDF for small values by using math.Expm1 2020-06-09 07:31:28 +09:30
Dan Kortschak
c2ba2b0865 internal/asm/{c64,c128}: allow tolerance for division tests
arm64 builds fail otherwise since the error doesn't underflow due to fused
operations.
2020-06-08 18:43:06 +09:30
Dan Kortschak
b238fd60b6 cmplxs: new package complex128 cognate of floats 2020-06-08 18:43:06 +09:30
Dan Kortschak
0b5d99e903 internal/asm/{c64,c128}: add stubs for kernels needed by cmplxs package 2020-06-08 18:43:06 +09:30
Dan Kortschak
6ded9ce79f floats: fix formatting and grammar 2020-06-08 18:43:06 +09:30
Roman Werpachowski
476cdbff13 stat/distuv: test Quantile with out of range arguments inside the common test function
This tests all distributions that are tested with checkQuantileCDFSurvival for
Quantile rejecting arguments which are out of range.
2020-06-08 09:19:02 +09:30
Roman Werpachowski
ea4cfbdd5e stat/distuv: improve Exponential test coverage and factor out some tests
Also fix Normal.ConjugateUpdate behavior to match documentation and pass new testing.
2020-06-04 08:16:59 +09:30
Dan Kortschak
c9733eb96b github: add FUNDING.yml 2020-06-04 06:56:22 +09:30
Roman Werpachowski
4ff1bb0a48 stat/distuv: improve interface documentation 2020-06-02 09:59:49 +09:30
Roman Werpachowski
82a2149e32 stat/distuv: complete test coverage for ChiSquared
Fix Mode function.
2020-06-02 08:52:12 +09:30
Roman Werpachowski
9357fac8d2 stat/distuv: improve test coverage for Categorical distribution 2020-06-01 21:04:23 +09:30
Roman Werpachowski
b88fa1fdc9 floats: add compensated summation using Neumaier's algorithm 2020-05-31 07:10:29 +09:30
Roman Werpachowski
9feeebfa2c stat/distuv: complete test coverage for Binomial and Beta distributions
Fix Beta mode calculation for α ≤ 1, β > 1 and α > 1, β ≤ 1 cases.
2020-05-30 21:52:23 +09:30
Roman Werpachowski
7b7373ea29 stat/distuv: extend test coverage and do some cleaning for Bernoulli distribution 2020-05-29 19:53:12 +09:30
Roman Werpachowski
5f68e0b712 A+C: add Roman Werpachowski 2020-05-28 22:52:53 +09:30
Roman Werpachowski
be889500d8 floats: improve test coverage 2020-05-28 22:51:02 +09:30
Marco Leogrande
043b26cc1c A+C: add Marco Leogrande 2020-05-25 14:41:07 +09:30
Marco Leogrande
2f6484adbf mat: fix typos 2020-05-25 14:41:07 +09:30
Dan Kortschak
1c6d241715 ci: don't lint on merge into master 2020-05-23 22:16:21 +09:30
Dan Kortschak
9c4b7ca313 ci: make golangci-linting a github action
From instructions at https://github.com/marketplace/actions/run-golangci-lint
2020-05-22 20:53:25 +09:30
Dan Kortschak
d7c6e0a4cf travis: install golangci-lint from source
golangci-lint now has a recommended source install.
2020-05-17 16:22:51 +09:30
Dan Kortschak
c907075fa0 travis: reset tree before the generate check 2020-05-17 15:37:58 +09:30
Dan Kortschak
f5dc855938 graph/flow: avoid non-rune to string conversion 2020-05-17 14:56:55 +09:30
Dan Kortschak
46dd6dcc96 amos: add bug note to failing tests 2020-05-17 14:51:46 +09:30
Dan Kortschak
519d2b5f9a amos: hook tests to original Fortran
Some tests fail and are skipped unless a -failing flag is added to the
test invocation. The tests here are only run when the fortran build tag
is set.
2020-05-17 08:08:22 +09:30
Dan Kortschak
866d58fa8a amoslib: remove stale TODO and document package 2020-05-17 08:08:22 +09:30
Dan Kortschak
de92f8ef4d mat: provide mechanism to output Python and MATLAB syntax 2020-05-08 18:58:03 +09:30
jonreiter@gmail.com
3182a0783b mat: Cholesky.SymRankOne don't update receiver if singular 2020-05-05 18:24:23 +09:30