Commit Graph

1104 Commits

Author SHA1 Message Date
Sebastian Kosch
0d5a0f5aeb ShapeConvolution -> AlgebraicShapeCombination 2020-07-03 17:15:37 -07:00
Sebastian Kosch
730dbddaf9 Fix multiplication of variances in ShapeConvolution 2020-07-03 17:13:26 -07:00
Sebastian Kosch
ca9f725ae7 Remove Leaf and Operation wrapper types 2020-07-03 14:55:27 -07:00
Ozzie Gooen
a649a6bca2 Added ExpressionTreeExamples in showcase 2020-07-02 23:52:58 +01:00
Ozzie Gooen
a681135f3d AlgebraicCombinations -> ShapeConvolution 2020-07-02 19:01:20 +01:00
Ozzie Gooen
9f30b6d75c Added back MathjsWrapper, which I accidentally lost 2020-07-02 18:29:04 +01:00
Ozzie Gooen
41eca03618 Set up new expressionTree directory 2020-07-02 18:12:03 +01:00
Ozzie Gooen
19e9eaee83 Minor renaming 2020-07-02 14:33:41 +01:00
Ozzie Gooen
96df9ced85 Moved rendering code from TreeNode to SymbolicDist 2020-07-02 14:30:01 +01:00
Ozzie Gooen
99c0803953 Moved truncateString work to separate section 2020-07-02 13:24:49 +01:00
Ozzie Gooen
4663700f67 Moved out distToFloatOps to better places 2020-07-02 12:25:04 +01:00
Ozzie Gooen
101824e500 Minor renames, and moved attemptAlgebraicOperation to SymbolicDist 2020-07-02 12:14:16 +01:00
Ozzie Gooen
491ac15f7b Separated Operation toString 2020-07-02 10:40:21 +01:00
Ozzie Gooen
43ba49dd12 Minor MathJsParser cleanup 2020-07-01 23:47:49 +01:00
Ozzie Gooen
05097bf28a Simplifications for MathJsParser 2020-07-01 23:05:35 +01:00
Ozzie Gooen
baaff19750 Moving operations functionality into new SymbolicTypes.re file 2020-07-01 22:01:58 +01:00
Ozzie Gooen
acdd3dfe7a Minor formatting and name changes 2020-07-01 20:26:39 +01:00
Ozzie Gooen
8b5733e49c
Update README.md 2020-06-30 08:28:49 +01:00
Ozzie Gooen
b7b1b8add1
Add files via upload 2020-06-30 08:27:59 +01:00
Sebastian Kosch
502481e345 First working prototype of algebraic combinations 2020-06-29 22:29:15 -07:00
Sebastian Kosch
f1e2458bca WIP: continuous/continuous convolution 2020-06-27 23:50:53 -07:00
Sebastian Kosch
f5ce4354ab Move to point-mass-based convolution for the continuous-continuous case 2020-06-26 23:48:54 -07:00
Sebastian Kosch
b368c2a8ee Testing convolutions 2020-06-26 23:16:37 -07:00
Sebastian Kosch
d2e7e5f928 Fixed some indexing errors in convolution code 2020-06-26 22:37:24 -07:00
Sebastian Kosch
dc1ec1bb86 It compiles! 2020-06-26 21:29:21 -07:00
Sebastian Kosch
bd528571af Working on code reorganization, doesn't compile yet 2020-06-25 23:38:14 -07:00
Sebastian Kosch
214f3b9e58 Renaming, removed some Js.logs 2020-06-13 18:54:54 -07:00
Sebastian Kosch
8827650da3 Slightly cleaned up tree evaluation 2020-06-13 18:46:38 -07:00
Sebastian Kosch
9b10452156 Fix division by zero 2020-06-12 23:53:01 -07:00
Sebastian Kosch
f6c1918b12 Big refactor towards proper distTree, still slow and untested 2020-06-12 23:30:51 -07:00
Sebastian Kosch
bc271a090b Make yMin=0 for discrete point y-axis on d3 chart 2020-06-09 21:58:48 -07:00
Sebastian Kosch
fa1bf75acc Comment out some stuff, fix annoying react key prop error 2020-06-09 21:43:35 -07:00
Sebastian Kosch
eb0ffdc6c3 First pass at nested multimodals, still needs lots of cleanup 2020-06-09 21:28:44 -07:00
Sebastian Kosch
a9d52e2c5c
Merge pull request #1 from foretold-app/master
Updates
2020-06-03 12:02:39 -07:00
Ozzie Gooen
2ca3fe12fc
Merge pull request #45 from foretold-app/update-bucklescript
Update bucklescript to 7.3.2
2020-06-03 20:00:37 +01:00
Ozzie Gooen
642db86b91 Update bucklescript 2020-06-03 19:49:07 +01:00
Ozzie Gooen
0ad8fe9722
Merge pull request #42 from skosch/master
Realistic x selection for uniform distribution rendering, and 90CI stdev fix
2020-06-03 17:46:52 +01:00
Sebastian Kosch
6306fa9ca2 Clean up interpolateXs function 2020-06-03 09:24:55 -07:00
Sebastian Kosch
68efbf0396 Fix normal distribution from 90CI (stdev was double what it should be) 2020-06-02 15:24:09 -07:00
Sebastian Kosch
f3f1861ba6 Realistic x selection for uniform distribution rendering 2020-06-02 15:08:41 -07:00
Ozzie Gooen
bd63a5f920
Merge pull request #40 from foretold-app/drawer
Drawer
2020-05-26 17:13:11 +01:00
Ozzie Gooen
30701938c3
Merge branch 'master' into drawer 2020-05-26 17:12:00 +01:00
433780186b Fixed formatting from the previous commit. The previous commit fixed a bug where the distribution would be sent to foretold inverted 2020-05-26 16:40:02 +02:00
96645334be Fixed a bug where the distribution would be shown inverted 2020-05-26 16:35:57 +02:00
Ozzie Gooen
3ae1b827d1 Moved specific items to devDependencies 2020-05-13 13:58:25 +01:00
23952af460 + Added the ability to change the upper and lower boundaries.
+ Made the drawings relative to the canvas, not to the screen.
- Removed the mean line, as it didn't play nice with the ability to change upper and lower boundaries.
2020-05-06 00:15:51 +02:00
ff5b26d865 Adds a distribution drawer to widedomain.
Things to note:
- The code has comments. I feel protective of these comments, and feel that they help structure the code and will help me out when I come I come back to this code a couple of weeks or months from now.
- Originally based on code by Evan Ward (probability.dev). See also: observablehq.com/@nunosempere/distribution-drawer

To do, in order of importance:
- Add the ability to change the upper and lower boundaries.
- Make the drawings relative to the canvas, not to the screen.
- Add other features from probability.dev

Cool things yet to be done:
- Make it so that one can input a guesstimate function, and then draw on it. To do this, use the Convert.xyShapeToCanvasShape and modify the Draw.initial distribution function slightly.
- Maybe reach out to Metaculus to see if they want to use this somewhere?
2020-05-05 12:52:50 +02:00
Ozzie Gooen
0d4c71190d Upgraded bucklescript 2020-04-30 13:30:52 +01:00
Ozzie Gooen
2ab2faf5e9 Only allow for finite samples from sampling library 2020-04-30 11:34:59 +01:00
Ozzie Gooen
5129ff20d5 Added normal from90PercentCI for distributions that are at 0 or below 2020-04-30 11:18:33 +01:00