Jonathan J Lawlor
6eab3f0cba
Add test for ExKurtosis panic
...
Added a test for the slice length mismatch
2014-10-30 20:24:03 -04:00
Jonathan J Lawlor
8669c5e165
Add tests for cross entropy's panic
2014-10-19 22:00:15 -04:00
Jonathan J Lawlor
19ed9ad89b
Add tests for Covariance
...
There were no tests for covariance, only the example.
2014-10-19 21:53:28 -04:00
Jonathan J Lawlor
b77ecc2c2d
Add test for chi2 panic
2014-10-19 18:37:14 -04:00
Jonathan J Lawlor
5d7e4d3b79
test for chi2 special case
...
Add test for chi squared distance special case, with both bins == 0.
2014-10-19 18:35:42 -04:00
Jonathan J Lawlor
f510cbd899
Handle NaN inputs in CDF
...
When sort.Float64sAreSorted is called, it panics on NaN inputs.
The way the code is written, there seems to be an intent that if the
input x contains a NaN, then the function should return a NaN. I
switched the order of the conditional statements so that this became
possible.
I also modified the test cases so that cases with NaN could be
evaluated.
2014-10-19 18:28:50 -04:00
Jonathan J Lawlor
2afe21d761
Add tests for panics in CDF
...
Add test cases for the various ways that CDF can panic.
We might want to have a reserved CumulantKind that is always invalid,
just for testing.
2014-10-19 17:31:03 -04:00
Jonathan J Lawlor
e5c3361454
Add test for panic in Bhattacharyya
2014-10-19 17:09:43 -04:00
Jonathan J Lawlor
013f164022
add Panics to help test code that should panic
...
This is from gonum/floats’s tests. It wraps a called function in a
defer / panic (hopefully) / recover.
2014-10-19 17:09:19 -04:00
btracey
c2c92a04af
Added Kolmogorov-Smirnov distance function and test
2014-09-18 16:20:10 -07:00
btracey
1da795789e
Fixed check for zero probability value in JensenShannon and updated test.
2014-09-16 23:46:39 -07:00
btracey
6f420f1ff0
Added JensenShannon distance function with test
2014-09-16 22:57:24 -07:00
Brendan Tracey
9cabea418c
Merge pull request #6 from pradeep-pyro/stat_distances
...
Added a few statistical distances
2014-09-02 22:27:49 -07:00
btracey
fae354edd8
Fixed spelling of Kullback-Leibler.
2014-09-01 10:19:05 -07:00
pradeep
ceb78858fe
Reorder functions in alphabetical order.
...
Remove normalization in bhattacharyyaCoeff().
2014-09-01 16:35:40 +08:00
pradeep
ca4b71f0fa
Fixed bugs;
...
Added Bhattacharyya(), Hellinger() and tests;
Removed Intersection().
2014-09-01 14:26:59 +08:00
btracey
244075b735
Make golint happy. Change StDev to StdDev.
...
This CL changes the function signature from StDev to StdDev to match the other StandardXxx functions.
Additionally, this PR fixes the comments that don't start with the correct name
and changes +=1 to ++ by recommendation from golint
2014-08-05 21:58:31 -07:00
btracey
758d7216bc
Changed formattign on histogram function. Changed name of Percentile to CDF and improved panic message
...
Lists should be separated out into their own block (see the reflect package).
It was decided in code review that Quantile and Percentile are confusing
so it was decided to change it to Quantile and CDF
2014-08-05 19:19:27 -07:00
btracey
a00167aefa
Flipped the names of Quantile and Percentile. Added CumulantKind to Quantile and Percentile functions.
2014-08-05 11:01:47 -07:00
btracey
1bb472a6c9
Incorporated PR comments
2014-08-04 23:23:39 -07:00
btracey
279d2bd0a9
Initial commit of sample statistics functions to the stat package
2014-08-04 16:13:19 -07:00