Ozzie Gooen
45323b0e08
Merge pull request #1008 from ideopunk/feature/distribution_tweaks
...
Distribution component tweaks
2022-09-08 15:49:58 -07:00
Umur Ozkul
1c98aaa3e2
value vs result conversion functions
2022-09-09 00:43:21 +02:00
Conor Barnes
2736fb9a17
delete conflicting file
2022-09-08 16:31:02 -03:00
Vyacheslav Matyukhin
d3788fb411
remove generated ReducerProject_IncludeParser.js from repo
2022-09-08 16:27:32 +04:00
Vyacheslav Matyukhin
ecc82ba8f7
reformat for lint
2022-09-07 23:04:07 +04:00
Vyacheslav Matyukhin
06ec2caae0
remove unused code
2022-09-07 22:50:24 +04:00
Vyacheslav Matyukhin
c0ccdbc1e9
experimental: replace result with exceptions in reducer
2022-09-07 22:45:19 +04:00
Ozzie Gooen
7d8a7e19d5
Ran yarn format
2022-09-06 15:03:24 -07:00
Ozzie Gooen
00a22b456d
Removed now-not-needed text
2022-09-06 13:03:39 -07:00
Vyacheslav Matyukhin
00a0005e56
Merge branch 'develop' into fixes-for-ideopunk
...
Also some SqDistribution fixes.
2022-09-06 23:35:37 +04: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
044ed0bea3
qualify IEvVoid
2022-09-04 21:19:27 +02:00
943e63b379
link: run pretty
2022-09-04 20:26:57 +02:00
b292a3e6fd
tweak: Add to dos to continue tomorrow
2022-09-04 20:07:10 +02:00
f82c00a6ed
tweak: Work out how to apply a function to an
...
arbitrary value in the Danger domain
2022-09-04 19:29:22 +02:00
b45ab3dba2
feat: In Danger namespace, work out how to apply function
2022-09-04 19:22:12 +02:00
b57233096d
tweak: Revert back to working state in Danger namespace
2022-09-04 19:04:13 +02:00
dc34e7c0b8
feat: Danger namespace function tweaking
2022-09-04 18:58:19 +02:00
85fe4d16a2
tweak: Intermediary step while figuring out
...
function application
2022-09-04 18:53:57 +02:00
803231d620
feat: add a few more simple functions to Danger namespace
2022-09-04 17:12:18 +02:00
3106a10b90
tweak: Move new functions to the "Danger" namespace
2022-09-04 15:31:18 +02:00
19ddd4eb3f
tweak: Add TwoNumbersToNumber wrapper to function registry.
2022-09-04 15:09:09 +02:00
Ozzie Gooen
e522eb4c5f
0.3.0 -> 0.3.1
2022-09-01 11:00:23 -07:00
Vyacheslav Matyukhin
7e3fa1d65a
Merge branch 'develop' into epic-reducer-project
2022-09-01 21:15:18 +04:00
Ozzie Gooen
a97d1bae6d
Merge pull request #1050 from quantified-uncertainty/SampleSet.max-min
...
Added SampleSet.min and Sampleset.max
2022-09-01 09:07:02 -07:00
Vyacheslav Matyukhin
fc3a7c6cf9
support for __result__ in web components and SqLambda
2022-09-01 19:11:49 +04:00
Vyacheslav Matyukhin
8842f7b25e
delete getDependents and getDependencies methods from TS API
2022-09-01 18:15:36 +04:00
Vyacheslav Matyukhin
dd3a8ab736
getRunOrderFor runs topological sort from current id
2022-09-01 17:57:04 +04:00
Umur Ozkul
ec93a82110
format
2022-09-01 14:53:01 +02:00
Umur Ozkul
1fe0aefd6b
Merge branch 'epic-reducer-project' of github.com:quantified-uncertainty/squiggle into epic-reducer-project
2022-09-01 14:52:14 +02:00
Umur Ozkul
7eef1d30f3
__result__ variable in bindings
2022-09-01 14:51:20 +02:00
Umur Ozkul
82a4e52384
include and "include as"
2022-09-01 14:32:24 +02:00
Vyacheslav Matyukhin
59ed741f33
show either result or bindings in viewer
2022-09-01 15:02:32 +04:00
Vyacheslav Matyukhin
48fb634140
fix more tests for new TS classes
2022-09-01 14:36:27 +04:00
Ozzie Gooen
e582fc5be3
library1 -> libraryBase
2022-08-31 22:15:13 -07:00
Quinn Dougherty
ab9a83bcf7
I think we're done here?
2022-09-01 13:07:13 +08:00
Quinn Dougherty
ab5b54413b
it string in tests
2022-09-01 12:54:04 +08:00
Quinn Dougherty
9366ce61f3
yarn format
compels me
2022-09-01 12:48:20 +08:00
Quinn Dougherty
989fa9644a
rm |>
in favor of ->
2022-09-01 12:48:07 +08:00
Ozzie Gooen
255541a679
Added SampleSet.min and Sampleset.max
2022-08-31 21:43:36 -07:00
Quinn Dougherty
729fc2c59d
Merge remote-tracking branch 'origin/develop' into sampleset-mixture
2022-09-01 12:39:55 +08:00
Ozzie Gooen
5e9bf521fa
Merge pull request #1042 from quantified-uncertainty/getByWithFn
...
Changed getByWithFn to not need two function calls
2022-08-31 20:10:30 -07:00
Ozzie Gooen
0fa34b09e4
Merge pull request #995 from quantified-uncertainty/sampleSet-truncate
...
Added truncate for SampleSet distribution
2022-08-31 19:57:49 -07:00
Ozzie Gooen
6631c9bad7
Renamed getByWithFn
2022-08-31 19:56:12 -07:00
Ozzie Gooen
22458aa9e5
Proper formatting
2022-08-30 18:17:00 -07:00
Ozzie Gooen
2f77888365
Changed getByWithFn to not need two function calls
2022-08-30 17:58:51 -07:00
Vyacheslav Matyukhin
ba280c9292
implement lambda calls in web components
2022-08-30 15:16:57 +04:00
Ozzie Gooen
4368bb53fa
Changed samples and xyPointLength from 10K to 1K
...
See: https://eaforecasting.slack.com/archives/C030T49UHSS/p1661817834362619
2022-08-29 17:52:59 -07:00
Vyacheslav Matyukhin
a7bbfad94b
store location in values; render both result and bindings
2022-08-30 01:51:44 +04:00
Vyacheslav Matyukhin
ddfd4e0024
cleanup commented old code
2022-08-29 21:02:05 +04:00
Sam Nolan
25565ce5c0
Fix tests failing
2022-08-29 12:50:51 +10:00
Vyacheslav Matyukhin
9c3d41427e
update System.version
2022-08-29 00:01:26 +04:00
Vyacheslav Matyukhin
fe8e980d27
fix enum types; remove accidental generated .js file
2022-08-28 23:59:56 +04:00
Vyacheslav Matyukhin
b7aa126e6a
output bindings when result is void
2022-08-28 21:45:15 +04:00
Vyacheslav Matyukhin
481483e937
rename and stringify enum tags
2022-08-28 21:33:16 +04:00