Commit Graph

27 Commits

Author SHA1 Message Date
Ozzie Gooen
dc127a884a
Merge pull request #359 from quantified-uncertainty/log-inputs-errors
Show correct errors early on when log(distribution) has bad arguments
2022-04-25 20:50:26 -04:00
Sam Nolan
62653d55b4 Fix pointwise not commuting for subtraction 2022-04-25 15:46:56 -04:00
Ozzie Gooen
51e2cf167c Turned error into actual error 2022-04-23 18:07:26 -04:00
Ozzie Gooen
1102ceb4ec Show correct errors early on when log(distribution) has bad arguments 2022-04-23 17:51:41 -04:00
Sam Nolan
ee6551a694 Prevent negative standard deviation in symbolic multiplication
Introduced in #242
2022-04-23 16:57:06 -04:00
Sam Nolan
c7e601e15b Remove NaN from pointwise operations 2022-04-23 14:09:06 -04:00
Sam Nolan
ad593e659b Move error types to types modules 2022-04-23 09:56:47 -04:00
Sam Nolan
79af95ed78 Remove unneeded prefix to error 2022-04-23 09:47:48 -04:00
Sam Nolan
508f673873 Change NaN operations to results
- Also deleting old GenericDist_Types
- Also removing some string errors
2022-04-22 16:27:17 -04:00
Sam Nolan
2845bd3e39 Use a more conservative convolution policy 2022-04-22 12:43:18 -04:00
c15412642a fix: Failing tests 2022-04-15 13:01:49 -04:00
9910afd74b fix: Failing tests
The tests were wrong, not the code. Feels like it should be
the other way around
2022-04-14 16:52:36 -04:00
6d82adca25 Merge branch 'develop' into audit-2022-04-14-SymbolicDist.res 2022-04-14 16:50:37 -04:00
aad6a9c603 fix: Bad tests
These tests are failing because I increased the precision of a magic
constant.

This might be a signal that these are bad tests
2022-04-14 16:35:24 -04:00
Sam Nolan
948a8dd651 Add analytic solutions for normal and lognormal 2022-04-13 15:11:14 +10:00
Sam Nolan
348b1c9ac6 Add normal distribution analytical simplifications 2022-04-13 14:36:30 +10:00
Sam Nolan
117c08bfa9 Fix unweighted average of distributions 2022-04-13 12:03:04 +10:00
Quinn Dougherty
4f95c019eb yarn format 2022-04-12 20:22:19 -04:00
Ozzie Gooen
937a8482fd Added sparkline and toString to ReducerInterface 2022-04-08 09:08:49 -04:00
Ozzie Gooen
e4f563fa08 Added unary minus function support to distributions, cleaned tests 2022-04-02 17:06:57 -04:00
Ozzie Gooen
06285dbdc1 Additional testing for GenericDist-Reducer interface, plus getting log, exp to work with 1 param 2022-04-02 16:25:41 -04:00
Ozzie Gooen
46af9233a1 Fixed tests to use pointwiseAdd instead of .add 2022-04-02 11:06:09 -04:00
Ozzie Gooen
688cf0b19e Changes in response to CR 2022-04-02 11:01:53 -04:00
Ozzie Gooen
e7c2a7db01 Light cleanup of ReducerInterface_GenericDistribution 2022-04-01 15:41:11 -04:00
Ozzie Gooen
18d742b63c Added symbolic functions and tests for reducer interface distribution code 2022-04-01 13:21:24 -04:00
Umur Ozkul
17ca080ebb PR#107 show -> toString 2022-03-30 12:53:36 +02:00
Umur Ozkul
aff9a60d49 fix module name in __tests__ 2022-03-29 15:18:56 +02:00