Commit Graph

1366 Commits

Author SHA1 Message Date
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
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
Ozzie Gooen
92ac693736
Merge pull request #27 from foretold-app/features/1120
Adds a bundle visualizer
2020-04-10 10:27:32 +01:00
Ozzie Gooen
62b6542037
Merge pull request #28 from foretold-app/feature/1119
Adds a Home page with models table
2020-04-10 10:08:43 +01:00
Roman Galochkin
831295f868 Revert "Adds a Home page with models table"
This reverts commit 36e4a003
2020-04-10 12:04:08 +03:00
Roman Galochkin
d5e8cd307f Adds a Home page with models table 2020-04-10 12:03:17 +03:00
Roman Galochkin
36e4a003d3 Adds a Home page with models table 2020-04-10 12:01:24 +03:00
Roman Galochkin
68a15168aa Adds a bundle visualizer 2020-04-10 10:19:38 +03:00
Ozzie Gooen
e336aee9e9
Merge pull request #25 from foretold-app/Interface-refactor
Renderer-Refactor
2020-04-05 12:17:18 +01:00
Ozzie Gooen
8b5393cd8f Fixed test page 2020-04-05 12:16:04 +01: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
1b541ec038 Merge branch 'master' of github.com:foretold-app/estiband
* 'master' of github.com:foretold-app/estiband:
  Downgrades mathjs
2020-04-03 14:32:21 +01:00
Ozzie Gooen
145452d50f Auto-kernel-width 2020-04-03 14:32:14 +01:00
Ozzie Gooen
399a410b54
Merge pull request #24 from foretold-app/improvements/1115
Downgrades mathjs
2020-04-03 13:56:37 +01:00
Roman Galochkin
c6a9277a3c Downgrades mathjs 2020-04-03 15:42:17 +03:00
Ozzie Gooen
5ad426f4a9
Merge pull request #23 from foretold-app/features/1114
Features/1114
2020-04-03 12:22:24 +01:00
Roman Galochkin
df075b4d68 Moves code into Science module 2020-04-03 14:08:32 +03:00
Roman Galochkin
1fe9524937 Moves code into Science module 2020-04-03 14:06:05 +03:00
Roman Galochkin
b84155d7dc Implements some function of Science lib 2020-04-03 14:00:40 +03:00
Roman Galochkin
2dca2d5dd9 Adds bandwidth tests 2020-04-03 13:25:42 +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