Vyacheslav Matyukhin
c0ccdbc1e9
experimental: replace result with exceptions in reducer
2022-09-07 22:45:19 +04:00
Ozzie Gooen
00a22b456d
Removed now-not-needed text
2022-09-06 13:03:39 -07:00
fad1b51630
feat: simplify Danger functions
...
yarn.lock also changed because of the previous commmit
2022-09-06 21:16:29 +02:00
4917c2e0e2
Merge branch 'develop' of github.com:quantified-uncertainty/squiggle into more-functions
2022-09-06 21:00:17 +02:00
Umur Ozkul
0131498aca
fixes #558 fixes #1038
2022-09-06 20:15:57 +02:00
cf75152608
tweak: more cleanup
2022-09-06 15:17:20 +02:00
162f158dbc
tweak: Use firstErrorOrOpen instead of hack
2022-09-06 14:54:59 +02:00
fc2d647b62
tweak: Add error checking to dmr calculation
2022-09-06 14:49:58 +02:00
60e42cf1e8
cleanup: More Dangers cleanup
...
and formatting
2022-09-06 14:25:03 +02:00
ae71bb8ec5
tweak: Move cast function to registry helpers file and rename
2022-09-06 14:05:08 +02:00
4903319073
format
2022-09-06 13:59:21 +02:00
edce22050a
cleanup: Move integrals to its own module
2022-09-06 13:59:03 +02:00
8ddd1a166a
tweak: Move combinatorics functions to its own module
2022-09-06 13:55:28 +02:00
697e3ba852
cleanup: Delete large amounts of dead code from Danger.
...
But keep pointer to commit
2022-09-06 13:44:55 +02:00
5ce0a6979d
tweak: Also use helpers in Number lib
...
Avoids code duplication
2022-09-06 13:39:02 +02:00
d8d68445b6
git add: Use helpers in Danger lib
2022-09-06 13:37:36 +02:00
b21d5d09a8
tweak: Add number function helpers
2022-09-06 13:36:43 +02:00
Ozzie Gooen
38447f1633
Merged with epic-reducer-project
2022-09-05 20:19:35 -07:00
Ozzie Gooen
c5928129d7
Minor cleanup to danger files
2022-09-05 20:16:41 -07:00
cae8f8cb65
tweak: tested examples in playground
2022-09-05 22:14:26 +02:00
bfc3b39b2b
tweak: format
2022-09-05 22:08:20 +02:00
e1760dab2d
tweak: Cleanup
2022-09-05 22:08:00 +02:00
f76de31d26
faustian bargain: create 6 different Danger.dmr functions
...
So ugly that it's almost beautiful. Except it's not
2022-09-05 21:59:53 +02:00
c183dbd24b
tweak: Continue building skeleton for Danger dmr
2022-09-05 21:40:20 +02:00
70d9a5c9f3
tweak: save intermediary state
2022-09-05 20:52:23 +02:00
8bdfa03799
feat: In Danger, add dmr for many functions
...
Still to be tested
2022-09-05 17:05:25 +02:00
2f33559e77
tweak: in Danger namespace change function name
...
to make clear that it takes only two inputs,
while I build the many-inputs version
2022-09-05 16:40:17 +02:00
9551aae634
tweak: format
2022-09-05 16:08:06 +02:00
8f8ca02730
tweak: get possibly working dmr function
2022-09-05 15:58:08 +02:00
b13da70c38
tweak: Build Danger.dmr skeleton more
2022-09-05 15:51:55 +02:00
be4e1b1a85
tweak: In Danger namespace, build dmr function further
...
dmr = diminishing marginal returns
2022-09-05 15:27:59 +02:00
fe3075b3bf
tweak: In Danger namespace, further diminishingMarginalReturnsSkeleton
2022-09-05 14:12:34 +02:00
aa3173f85b
tweak: Add skeleton for calculating dimishing returns allocation
2022-09-05 14:00:14 +02:00
f370c44771
tiny tweak: better example
2022-09-05 13:09:28 +02:00
c0713b16c2
tweak: Add better error messages for common use case
...
I.e., the case of integrating a function which
doesn't return a number but a distribution
2022-09-05 13:03:56 +02:00
2b414191ac
tweak: Numerate integration errors.
2022-09-05 12:49:47 +02:00
a45e38d75d
feat: Cleanup of Danger namespace
2022-09-05 12:38:15 +02:00
6d75af61c3
fix: formatting
2022-09-05 12:16:19 +02:00
27ca86e729
feat: Worked out kinks of the integral!
2022-09-05 12:11:42 +02:00
fd7720b045
fix: formatting
2022-09-05 09:39:55 +02:00
2fa97c20f7
fix: Off by one error due to Belt.Array.makeBy
2022-09-05 09:37:48 +02:00
6c04f9bff1
fix: change expected output type of integrals
2022-09-05 09:10:42 +02:00
e73ffaa10a
feat: Added a slightly better integral function
...
Slightly better because the handling of bounds is better.
Previously we were integrating at min, min + interval,
min + i*interval, ...
which meanst that sometimes we weren't integrating at
max.
Also a minimal amount of cleanup
2022-09-05 09:08:53 +02:00
abad453523
fix: no small integration error
2022-09-05 08:41:33 +02:00
244f3ea8d9
feat: Note that this isn't tested yet.
2022-09-04 22:48:29 +02:00
ecf5249b5c
feat: And integration function to Danger namespace
...
Note that I haven't tested this yet.
2022-09-04 22:45:55 +02:00
Umur Ozkul
3794909efc
format js
2022-09-04 21:53:02 +02:00
Umur Ozkul
b73924135f
format rescritp
2022-09-04 21:52:48 +02:00
Umur Ozkul
247e101324
PR comment
2022-09-04 21:24:53 +02:00
Umur Ozkul
044ed0bea3
qualify IEvVoid
2022-09-04 21:19:27 +02:00