Dan Kortschak
459f250b3d
cmplxs,floats: harmonise docs and panic strings
2020-08-13 15:28:49 +09:30
Dan Kortschak
07022b18ba
cmplxs: add Real, Imag and Complex functions
2020-08-13 06:46:19 +09:30
Roman Werpachowski
41a8e221d0
interp: add a DerivativePredictor interface and implement it in AkimaSpline and PiecewiseCubic
2020-08-10 23:14:54 +01:00
jr
755716c143
stat/distmat: add UniformPermutation
2020-08-09 18:52:09 +09:30
Dan Kortschak
f3d13f45bc
cmplxs/cscalar,floats/scalar: expand return value names
2020-08-07 07:59:02 +09:30
Dan Kortschak
91fb2f26fb
cmplxs,floats: fix comments
2020-08-07 07:59:02 +09:30
Dan Kortschak
e205be025e
cmplxs/cscalar,floats/scalar: fix comments and clarify implementation
2020-08-07 07:59:02 +09:30
Dan Kortschak
dba48453fd
all: use cscalar.Same instead of local same function
2020-08-07 07:59:02 +09:30
Dan Kortschak
4f194cd672
cmplxs/cscalar: new package containing non-vector functions from cmplxs
2020-08-07 07:59:02 +09:30
Dan Kortschak
0e6fb8d22a
all: use scalar.Same instead of local same function
2020-08-07 07:59:02 +09:30
Dan Kortschak
da72779e7a
floats/scalar: new package containing non-vector functions from floats
2020-08-07 07:59:02 +09:30
Dan Kortschak
48235867ac
mat: add note about layout and performance
2020-08-03 08:06:13 +09:30
Roman Werpachowski
aa5949fd24
interp: add PiecewiseCubic and AkimaSpline interpolators
2020-07-30 19:15:54 +01:00
Dan Kortschak
f69c0ac28e
mat: clarify that prefix is only added after the first line
2020-07-16 14:34:03 +09:30
Dan Kortschak
9178f9e6ec
doc: nominate initial code of conduct committee members
2020-07-15 19:26:51 +09:30
Dan Kortschak
9531b877b3
doc: extend conduct document to parallel golang.org/conduct
...
The differences here mainly reflect that the sponsors will be NumFOCUS
rather than Google and that Gonum is likely not yet large enough to need
us to have a distinct Project Steward role in addition to the conduct
committee (see https://blog.golang.org/conduct-2018 for a discussion of
the changes the Go project made from a committee to a stewarding model
backed by a project-independent committee).
2020-07-15 19:26:51 +09:30
Roman Werpachowski
1ddc13d94c
stat/distuv: fix CDF and score functions for Weibull distribution
...
Also completes test coverage for Weibull.
2020-07-15 09:44:02 +01:00
Dan Kortschak
4d35686356
ci: try to avoid linter timeouts
2020-07-15 14:05:35 +09:30
Roman Werpachowski
6ac2986f49
stat/distuv: add complete test coverage for Uniform distribution
2020-07-15 00:57:35 +01:00
Sebastien Binet
684a9658f5
ci: remove golangci-lint from travis checks
...
golangci-lint is also run as part of a GitHub-Actions.
run it there, drop it from the travis-ci dependencies.
Fixes gonum/gonum#1393 .
2020-07-13 12:02:02 +02:00
Sebastien Binet
66aa83975b
all: put examples into a xxx_test package clause
...
Fixes gonum/gonum#1395 .
2020-07-13 12:01:16 +02:00
Roman Werpachowski
eed13fbb23
stat/distuv: full test coverage for Triangle distribution
2020-07-13 10:49:44 +01:00
Roman Werpachowski
d08c7b38eb
stat/distuv: add AlphaStable distribution
...
Implements sampling from a general alpha-stable distribution and some basic distribution properties when possible.
2020-07-12 12:04:29 +01:00
Dan Kortschak
27220e4f5c
graph/path: add missing doc comment
2020-07-12 18:07:51 +09:30
Dan Kortschak
6a06a241d1
graph/path: use a struct to make intentions in negative edges clearer
2020-07-12 18:07:51 +09:30
Dan Kortschak
0631cb635a
graph/path: improve negative costs accounting field documentation
2020-07-12 07:26:07 +09:30
Dan Kortschak
04e487c6bc
graph/path: add doc comments for unexported path construction methods
2020-07-12 07:26:07 +09:30
Vladimir Chalupecky
7c6ff0e291
mat: update docs for SVD.SolveTo and SVD.SolveVecTo
2020-07-10 16:37:50 +02:00
Dan Kortschak
9ae0689dae
graph/path: add option to retain all paths from single-source path finding routines
2020-07-10 07:22:35 +09:30
Roman Werpachowski
2b2cdf09b4
stat/distuv: provide complete test coverage for Poisson
2020-07-09 09:27:07 +01:00
Dan Kortschak
3bedd58622
graph/path: properly report negative cycles in Shortest.To
...
We still use the maxEdges condition to allow a better exploration of the graph
before terminating.
2020-07-07 06:20:59 +09:30
Roman Werpachowski
551d33a2ee
Add a new interp package with interpolation algorithms: constant, piecewise linear and piecewise constant
2020-07-06 21:40:06 +01:00
Dan Kortschak
42752487ce
graph/path/dynamic: remove unnecessary nolint comment
...
The golangci-lint staticcheck version has been updated and now correctly runs the
SA4000 lint check on arrays of float.
2020-07-06 20:16:57 +09:30
Dan Kortschak
306b99283f
ci: update golangci-lint version to latest
2020-07-06 18:33:37 +09:30
Roman Werpachowski
77e854ade3
stat/distuv: fix Beta.LogProb for alpha = 1, x = 0 and beta = 1, x = 1
2020-07-03 18:55:38 +01:00
Roman Werpachowski
9e83f3a953
stat/distuv: provide full test coverage for statdist.go and increase numerical accuracy of Hellinger distance
2020-07-03 17:46:32 +01:00
Dan Kortschak
0b84c34903
dsp/window: add comment explaining origin of documentation
2020-07-03 21:43:50 +09:30
Roman Werpachowski
e049b5c72d
stat/distuv: fix StudentsT.Variance domain bound and provide full test coverage
2020-07-03 12:33:26 +01:00
Dan Kortschak
2241fbf495
graph/path/internal: add more negative cycle cases
2020-07-03 06:38:13 +09:30
Roman Werpachowski
4d4f8d85ec
stat/distuv: stat/distuv: add Pareto.Quantile and improve Pareto tests
...
* Complete test coverage for Pareto
* Add Pareto.Quantile
* Simplify the implementation of Pareto.Survival
* Improve accuracy of Pareto.CDF for x ~= xM
2020-07-02 09:18:53 +01:00
Dan Kortschak
8d4cfcdeb8
graph/path: fix error messages
2020-07-02 15:56:32 +09:30
Dan Kortschak
18a9c3eabc
graph/path: fix comments in BellmanFordFrom
2020-07-02 12:12:34 +09:30
Roman Werpachowski
1236d60193
stat/distuv: provide complete test coverage for LogNormal distribution
2020-07-02 00:09:20 +01:00
Dan Kortschak
142f1a8c6b
graph: make graph analysis routines safe for indeterminate iterators
...
This is a change in design for the graph.NodesOf family of functions. The
alternative was to provide an equivalent set of non-panicking routines in
graph for internal use. The protection that was intended with the panic
was to panic early rather than late when an indeterminate iterator exhausts
slice index space. I think in hindsight this was an error and we should
let things blow up in that (likely rare) situation.
The majority of changes are in test code. Outside the iterator package, which
is intimately tied to the determined iterator implementations, only one test
now fails if an indeterminate iterator is used, product's Modular extended
sub-graph isomorphism example, which is an algorithm that would have time
complexity issues with large iterators anyway.
2020-07-02 07:47:46 +09:30
Dan Kortschak
39cd12e938
graph/iterator: add lazy ordered node iterators
2020-07-02 07:47:46 +09:30
Dan Kortschak
2db33926ac
graph/iterator: extend iteration tests and fix counting error
2020-07-02 07:47:46 +09:30
Dan Kortschak
16da37cc66
graph/iterator: implement unsafe node iterators
2020-07-02 07:47:46 +09:30
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