Commit Graph

400 Commits

Author SHA1 Message Date
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
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
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
Ozzie Gooen
77c9ce09be Added standard deviation 2020-04-20 17:31:42 +01:00
Ozzie Gooen
63be03e1ab Minor tweaks 2020-04-20 17:29:37 +01:00
Ozzie Gooen
ad42a1d404
Merge pull request #31 from NunoSempere/opinionatedQualityOfLife
Makes four opinionated changes which improve my user experience:
2020-04-20 17:18:00 +01:00
96fcaa32b2 Makes four opinionated changes which improve my user experience:
- Makes the distributions bigger, much bigger, so that I can better see them.
- To do that, and to be able to see the input string at the same time I destroys the cdf.
    - My brain wasn't really made for interpreting cdfs, and I can switch to the cdf view if I want.
- Changes the distribution color to a bright, happy and shiny blue, so that I can better see them.
- Adds a standard distribution with more personality.
2020-04-19 22:32:24 +02:00
Ozzie Gooen
f247f65478 Minor cleanup of mean and variance 2020-04-19 21:04:50 +01:00
Ozzie Gooen
0fd5e2dcdb
Merge pull request #30 from NunoSempere/meanAndVariance
Mean and variance
2020-04-19 18:33:13 +01:00
Ozzie Gooen
747e3a6706 Fixed bug that would not truncate correctly 2020-04-19 17:44:53 +01:00
a89960a1e7 Formatting 2020-04-18 23:27:24 +02:00
2f45f92552 Added mean and variance functions, and tests for those.
- A getMean and getVariance in each module of src/distPlus/distribution/Distributions.re
    - They get the exact answer for the functions in Distributions.re, according to the approximation used.
    - There is now an XYShape.Analysis.integrateContinuousShape function.
- Tests in the __tests__/Distributions__Test.re function.
    - Calculation of the mean and variance for the normal and lognnormal distributions, at the end.
- I also added some reduce array functions to the E.A. module.
2020-04-18 23:20:59 +02:00
Ozzie Gooen
b14f1244c2 Minor fix, though this could hurt later 2020-04-18 18:54:30 +01:00
Ozzie Gooen
2e5f285a9e Allows for simple arrays representing samples 2020-04-11 14:22:13 +01:00
Roman Galochkin
d5e8cd307f Adds a Home page with models table 2020-04-10 12:03:17 +03:00
Ozzie Gooen
58c6c165f3 Minor fixes 2020-04-05 12:14:07 +01:00
Ozzie Gooen
82595ae167 Cleanup to return more from DistPlusRenderer 2020-04-05 12:00:25 +01:00
Ozzie Gooen
990f01b8d6 Reorganization of files 2020-04-05 07:36:14 +01:00
Ozzie Gooen
e84cfd4c92 Adding render options and params 2020-04-04 21:37:58 +01:00
Ozzie Gooen
db78bc07f3 Fixes of multimodals 2020-04-03 21:53:23 +01:00
Ozzie Gooen
7ab81249bf Kde with auto kernel width 2020-04-03 20:41:37 +01:00
Ozzie Gooen
145452d50f Auto-kernel-width 2020-04-03 14:32:14 +01:00
Roman Galochkin
1fe9524937 Moves code into Science module 2020-04-03 14:06:05 +03:00
Ozzie Gooen
88358470e3 Fixed issue with mixed distributions 2020-04-03 00:20:58 +01:00
Ozzie Gooen
0ef6d106ea Fixed issues with primary models 2020-04-01 19:49:59 +01:00
Ozzie Gooen
e80bd4108e Allow floats on top-level 2020-04-01 18:47:59 +01:00
Ozzie Gooen
bc39ce9c67 Very simple functionality with multimodals 2020-04-01 14:52:13 +01:00
Ozzie Gooen
34a2f28ff8 Minor changes 2020-03-31 22:12:11 +01:00
Ozzie Gooen
53675232e7 Minor touch-ups 2020-03-28 22:51:53 +00:00
Ozzie Gooen
54eab1f204 Change order of continuous distribution make command 2020-03-28 21:46:17 +00:00
Ozzie Gooen
786ee1fded Minor changes of optionals in distributions 2020-03-28 21:29:02 +00:00
Ozzie Gooen
29d8e40693 More XYShape cleanup 2020-03-28 14:17:47 +00:00
Ozzie Gooen
91734fdd32 Attempt to change name of jstat for netlify building 2020-03-26 23:31:17 +00:00
Ozzie Gooen
6f8d06a6d6 First refactor to XYShape 2020-03-26 23:18:19 +00:00
Ozzie Gooen
e17e2aca2e Added additional distributions 2020-03-26 16:01:52 +00:00
Ozzie Gooen
f7e3643a1e Minor fixes 2020-03-25 15:12:39 +00:00
Ozzie Gooen
dceea9c6b5 Minor refactor 2020-03-24 17:48:46 +00:00
Ozzie Gooen
64eef2b169 Added DistBuilder3 2020-03-24 00:04:48 +00:00
Ozzie Gooen
f662ccd6c6 First full-through with symbolic parsing 2020-03-23 21:31:06 +00:00
Ozzie Gooen
0e0f0221e9 Dist-builder-2-adjustments 2020-03-21 10:49:26 +00:00
Ozzie Gooen
8d1ab10e06 Minor cleanup 2020-03-20 12:08:26 +00:00
Ozzie Gooen
831d1345c5 Minor enhancements 2020-03-20 11:07:27 +00:00
Ozzie Gooen
01da434fc3 Sped up integrateWithTriangles a lot 2020-03-18 22:52:40 +00:00
Ozzie Gooen
37c1814a60 Very minor notes & cleanup 2020-03-18 21:46:43 +00:00
Ozzie Gooen
49b78ae814 Added smarter truncator 2020-03-18 20:50:01 +00:00
Ozzie Gooen
d0825581af Fix to make sure only top discrete items are truncated 2020-03-18 19:13:12 +00:00
Ozzie Gooen
2c83c68d95 Performance gains and added back mixtures 2020-03-17 18:38:16 +00:00
Ozzie Gooen
fff473b27c Small changes to hopefully improve CDF.re 2020-03-16 20:20:39 +00:00
Ozzie Gooen
c682fff280 Minor changes, but seemed to break percentiles 2020-03-16 16:59:58 +00:00
Ozzie Gooen
80d040e138 Messing with possible distribution split 2020-03-16 10:41:44 +00:00
Ozzie Gooen
cebca141bd Added simple truncate logic 2020-03-15 00:30:18 +00:00
Ozzie Gooen
b4b9f2cc9f Start of refactor to directly tie to pdfast 2020-03-15 00:08:13 +00:00
Ozzie Gooen
88d54d4de9 Started to improve GuesstimatorLibrary, had issues 2020-03-14 22:05:34 +00:00
Ozzie Gooen
a99415e5bc Added native logScoring and related functionality to XYShape 2020-03-14 21:18:34 +00:00
Ozzie Gooen
f887af22ea Add simple percentiles to distribution shower 2020-03-14 18:33:39 +00:00
Ozzie Gooen
c9161d230e Added Dist Domain Y resetting 2020-03-14 17:44:02 +00:00
Roman Galochkin
28fbbc2f20 Weird 2020-03-04 16:44:09 +03:00
Roman Galochkin
825f5e19b2 X-log 2020-03-04 15:06:27 +03:00
Roman Galochkin
e77b1c2e60 Renames class and react function 2020-03-04 14:36:44 +03:00
Roman Galochkin
a480995139 Fixes edges 2020-03-04 14:35:25 +03:00
Roman Galochkin
de62bb828f Fixes hovering 2020-03-04 13:56:32 +03:00
Roman Galochkin
6a2a3848a8 Merge remote-tracking branch 'origin/master' into feature/1101 2020-03-04 13:28:16 +03:00
Roman Galochkin
b171b0af46 Fixes names of options 2020-03-04 13:24:51 +03:00
Ozzie Gooen
f0f76ff96e Minor changes 2020-03-04 10:19:37 +00:00
Roman Galochkin
caaff9d802 Fixes a part of issues 2020-03-04 12:55:01 +03:00
Roman Galochkin
5bdb229b56 Uses strings instead of floats/ints 2020-03-04 10:50:11 +03:00
Roman Galochkin
de25eef2f6 Fixes code style 2020-03-04 09:11:23 +03:00
Ozzie Gooen
f45b4b763a Added ability to add-remove dists 2020-03-03 21:30:33 +00:00
Ozzie Gooen
bdeb53a6c4 Initial buttons 2020-03-03 19:25:06 +00:00
Ozzie Gooen
4735b9703c Simple d3 fixes 2020-03-03 15:49:05 +00:00
Ozzie Gooen
5a11ebfb03 Added experimental distribution-modification buttons 2020-03-03 14:29:02 +00:00
Roman Galochkin
6b256bb76e Fixes comments 2020-03-03 15:58:53 +03:00
Roman Galochkin
5354d5be02 Fixes inputs 2020-03-03 15:49:19 +03:00
Roman Galochkin
dcea2c70af Fixes inputs 2020-03-03 14:51:35 +03:00
Roman Galochkin
1fa38a15ba Fixes edges 2020-03-03 10:44:44 +03:00
Roman Galochkin
c275a98cbe Fixes edges 2020-03-03 09:33:33 +03:00
Roman Galochkin
c75686fac5 Adds warnings 2020-03-03 09:26:19 +03:00
Roman Galochkin
a997ce8aad Adds warnings 2020-03-03 09:21:59 +03:00
Roman Galochkin
8d875cc00d Adds todo 2020-03-02 16:05:55 +03:00
Ozzie Gooen
26ae5f5595 Merge branch 'master' of github.com:foretold-app/estiband
* 'master' of github.com:foretold-app/estiband:
  Fixes duplicated function in the bundle file
2020-03-02 10:13:55 +00:00
Ozzie Gooen
a37078d839 Minor changes 2020-03-02 10:13:52 +00:00
Roman Galochkin
8979f02ced Fixes duplicated function in the bundle file 2020-03-02 12:52:55 +03:00
Roman Galochkin
5ee9a6d227 Adds jsDoc 2020-03-02 10:05:39 +03:00
Roman Galochkin
a2c5eaac89 Fixes rectangles 2020-03-02 08:47:04 +03:00
Roman Galochkin
936710cea8 Merge remote-tracking branch 'origin/master' into improvements/1097 2020-03-02 08:31:32 +03:00
Roman Galochkin
9a41be8c37 Fixes quarters 2020-03-02 08:31:09 +03:00
Ozzie Gooen
297b280a93 Add filter command 2020-02-29 18:16:47 +00:00
Ozzie Gooen
6a86346b23
Merge pull request #11 from foretold-app/improvements/1086
Improvements/1086
2020-02-28 20:39:47 +00:00
Roman Galochkin
9592e50c1b Adds ticks 2020-02-28 13:49:39 +03:00
Roman Galochkin
798a19794a Shows discrete graph 2020-02-28 13:29:17 +03:00
Ozzie Gooen
d1a6c86984 Merge branch 'master' of github.com:foretold-app/estiband
* 'master' of github.com:foretold-app/estiband:
  Removes obsolete parts
  Fixes height
  Works, the first step
  Init
2020-02-27 22:22:00 +00:00
Ozzie Gooen
6c2f51a6c6 Minor changes 2020-02-27 22:21:56 +00:00
Ozzie Gooen
974a2143e6
Merge pull request #10 from foretold-app/feature/1077
Feature/1077
2020-02-27 21:43:45 +00:00
Ozzie Gooen
8454c38fe8 Changed defaults in DistBuilder 2020-02-27 16:10:48 +00:00
Roman Galochkin
306ddb70c0 Removes obsolete parts 2020-02-27 15:16:48 +03:00
Roman Galochkin
0931914ae4 Fixes height 2020-02-27 15:12:19 +03:00
Roman Galochkin
2f57f61cbf Merge remote-tracking branch 'origin/master' into feature/1077 2020-02-27 15:10:18 +03:00
Roman Galochkin
c99a7c5085 Works, the first step 2020-02-27 15:09:04 +03:00
Ozzie Gooen
6f3dd4b428 Merge branch 'master' of github.com:foretold-app/estiband
* 'master' of github.com:foretold-app/estiband:
  Fixes code style
  Adds a tooltip
2020-02-27 11:49:45 +00:00
Roman Galochkin
531df57242 Init 2020-02-27 14:32:05 +03:00
Roman Galochkin
1684d79d9b Fixes code style 2020-02-27 14:15:40 +03:00
Roman Galochkin
ec08860698 Adds styles 2020-02-27 14:09:16 +03:00
Roman Galochkin
444966ba90 Adds a tooltip 2020-02-27 13:44:04 +03:00
Ozzie Gooen
89d09195a2 Merged with master 2020-02-27 09:46:30 +00:00
Ozzie Gooen
2638607228 Minor cleanup 2020-02-27 09:45:46 +00:00
Roman Galochkin
22a9646bf1 Adds right color annotation 2020-02-27 11:50:46 +03:00
Roman Galochkin
4b0d9d6409 Hides inputs 2020-02-27 11:04:54 +03:00
Roman Galochkin
de882523bb Hides inputs 2020-02-27 10:43:37 +03:00
Roman Galochkin
1af461a7d3 Adds reload buttons 2020-02-27 10:17:10 +03:00
Roman Galochkin
1742a38724 Adds inputs 2020-02-27 10:00:03 +03:00
Roman Galochkin
95585fb43d Makes use Antd components 2020-02-27 09:21:47 +03:00
Roman Galochkin
5c204f7244 Adds spacer 2020-02-26 15:59:31 +03:00
Roman Galochkin
a9730c7480 Adds spacer 2020-02-26 15:58:56 +03:00
Roman Galochkin
746d74da96 Adds spacer 2020-02-26 15:55:19 +03:00
Roman Galochkin
b37d052b4f Adds a flex 2020-02-26 15:33:30 +03:00
Roman Galochkin
4daa45962d Adds a inputs 2020-02-26 15:21:30 +03:00
Roman Galochkin
fee4f1f97c Merge remote-tracking branch 'origin/master' into feature/1091 2020-02-26 13:38:36 +03:00
Roman Galochkin
09e0714ec4 Adds a component 2020-02-26 13:38:29 +03:00
Ozzie Gooen
58ac5bcd73 Added filename to link directly to files 2020-02-26 10:32:10 +00:00
Roman Galochkin
8f49870113 Adds a route 2020-02-26 13:31:34 +03:00
Ozzie Gooen
ee0ff39326 Minor fix to get continuous-discrete magnitudes working 2020-02-26 10:08:37 +00:00
Ozzie Gooen
7e8fa21ab7 Simple model Ids 2020-02-26 09:36:26 +00:00
Ozzie Gooen
60e33f985a Use simple model Ids 2020-02-26 09:30:37 +00:00
Ozzie Gooen
1d85c21e91 Merged with master 2020-02-26 09:18:43 +00:00
Ozzie Gooen
eece6cf95e Merge branch 'master' of github.com:foretold-app/estiband
* 'master' of github.com:foretold-app/estiband: (32 commits)
  Fixes CdfLibrary.js
  Fixes CdfLibrary.js
  Adds integral function
  Adds integral function
  Adds tests
  Adds tests
  FindX tests
  FindY tests (2)
  FindY tests
  Renames CDFunctor
  Findx
  FindY
  FindY
  Adds tests (5)
  Adds tests (4)
  Adds tests (3)
  Adds tests (2)
  Adds tests
  Adds a "range" function
  Fixes file link
  ...
2020-02-26 09:16:15 +00:00
Ozzie Gooen
312d90af39 New model 2020-02-26 09:16:10 +00:00
Ozzie Gooen
3f901a1102
Merge pull request #4 from foretold-app/feature/1083
Feature/1083
2020-02-26 09:13:38 +00:00
Roman Galochkin
b6559ef1bb Adds a routing 2020-02-26 12:11:06 +03:00
Roman Galochkin
98c26da6eb Adds options 2020-02-26 10:39:57 +03:00
Roman Galochkin
ca7cf60f5c Fixes the code styles and the construction of the code 2020-02-26 10:12:13 +03:00
Roman Galochkin
6a54d24550 Merge remote-tracking branch 'origin/master' into improvements/1087 2020-02-26 08:18:12 +03:00
Ozzie Gooen
f2d52e6180 Minor touches to models 2020-02-25 20:08:53 +00:00
Ozzie Gooen
ddd0bc0820 Make sure that chart minimum is shown 2020-02-25 19:55:01 +00:00
Ozzie Gooen
c30fab22c7 Fixed math around fixed integral calculations 2020-02-25 19:27:30 +00:00
Ozzie Gooen
a940fa30b7 Fixed mass-ratio of continuous vs. discrete 2020-02-25 12:54:52 +00:00
Ozzie Gooen
67ee34d821 Actually use cache when needed 2020-02-25 12:28:26 +00:00
Roman Galochkin
51aa8d82d9 Fixes CdfLibrary.js 2020-02-25 13:16:27 +03:00
Roman Galochkin
9349930ad8 Fixes CdfLibrary.js 2020-02-25 13:13:17 +03:00
Roman Galochkin
4fc7723e32 Adds integral function 2020-02-25 13:10:32 +03:00
Roman Galochkin
4a88acae66 Adds integral function 2020-02-25 13:08:16 +03:00
Roman Galochkin
946e2dad7e Adds tests 2020-02-25 12:45:41 +03:00
Roman Galochkin
188266546d FindX tests 2020-02-25 12:04:26 +03:00
Roman Galochkin
94a9712788 FindY tests (2) 2020-02-25 11:57:14 +03:00