Umur Ozkul
a02bc27852
eval partial tested
2022-04-21 21:33:12 +02:00
Umur Ozkul
46f3ee3d2c
parse partial tested
2022-04-21 19:16:09 +02:00
Umur Ozkul
a3a7b9b269
remove unused case
2022-04-21 18:22:36 +02:00
Umur Ozkul
f272568b97
Merge branch 'develop' into reducer-dev
...
packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res
2022-04-21 18:20:54 +02:00
Ozzie Gooen
e83d5b111d
Merge pull request #323 from quantified-uncertainty/fix-reducer-warnings
...
Fix rescript warnings
2022-04-20 14:17:28 -04:00
Sam Nolan
c2b93831e3
Fix rescript warnings
2022-04-20 13:51:27 -04:00
Quinn Dougherty
806ba86446
fixed lint
2022-04-20 12:13:31 -04:00
Quinn
c101cdac18
update signature for result
2022-04-20 11:54:17 -04:00
Quinn
cbd93b7e79
back out of double Ok
2022-04-20 11:50:08 -04:00
Quinn
4631c183d9
wrap #Cauchy
in Ok
2022-04-20 11:49:41 -04:00
Quinn
5875880c06
nested Ok
because cauchy
requires no input validation
2022-04-20 11:44:33 -04:00
Quinn
0540fef63a
Update ReducerInterface_GenericDistribution.res
2022-04-20 11:39:00 -04:00
Quinn
017cbe7274
hotfix: cauchy
in binary dist constructors
2022-04-20 11:22:10 -04:00
Umur Ozkul
da37536b4b
Merge branch 'develop' into reducer-dev
2022-04-17 20:38:20 +02:00
Umur Ozkul
e2015e1098
Outer and Partial: test helpers defined
2022-04-17 20:07:21 +02:00
Umur Ozkul
0585aa33a9
parseOuter, parsePartial
2022-04-17 19:47:05 +02:00
Umur Ozkul
b1e2b27cee
partials compile. TODO tests
2022-04-17 19:24:39 +02:00
Ozzie Gooen
fe2be53d04
Merge pull request #295 from quantified-uncertainty/add-isNormalized
...
Added isNormalized function, for testing
2022-04-15 16:30:56 -04:00
Ozzie Gooen
9febf3f182
Changed isNormalize in response to CR
2022-04-15 16:28:51 -04:00
Ozzie Gooen
2ed7d03005
Added formatting
2022-04-15 14:10:17 -04:00
Ozzie Gooen
2df6a7f537
Removed Js.log
2022-04-15 13:59:25 -04:00
Ozzie Gooen
73b950078d
Added isNormalized function, for testing
2022-04-15 13:58:00 -04:00
8743b235d6
fix: typo
2022-04-15 12:54:04 -04:00
Umur Ozkul
7ab69a1708
issue 234
...
Define partial code
2022-04-15 14:48:58 +02:00
Umur Ozkul
3f95ca455b
imports #234
2022-04-15 08:56:48 +02:00
1677d63375
fix: std of lognormal symbolic division
2022-04-14 21:54:06 -04:00
6d82adca25
Merge branch 'develop' into audit-2022-04-14-SymbolicDist.res
2022-04-14 16:50:37 -04:00
bd3f2c99d1
tweak: add explanation for magic number
2022-04-14 16:25:15 -04:00
e5655dc2d1
fix: formatting
2022-04-14 16:20:23 -04:00
69148bb350
fix: Rescript bugs
2022-04-14 16:17:59 -04:00
Ozzie Gooen
8854eed91e
Merge pull request #242 from quantified-uncertainty/analytic-normal
...
Analytic normal
2022-04-14 16:11:36 -04:00
ec9c67f090
feat: Audit SymbolicDist.res
...
- Fix buggy lognormal multiplication code
- Add precision to 90% confidence intervals code
- Simplified lognormal code
- Added sources for many of the manipulations
2022-04-14 16:03:54 -04:00
Umur Ozkul
53c44cdc9d
refactor macro definitions
2022-04-14 18:17:45 +02:00
Umur Ozkul
1fa1867470
Merge branch 'develop' into reducer-dev
2022-04-14 17:04:54 +02:00
Umur Ozkul
35f7077248
remove unused code
2022-04-14 17:02:01 +02:00
Umur Ozkul
fb63d44ab9
PR#226
2022-04-14 17:00:12 +02:00
Umur Ozkul
9b4f397859
remove unnecessary rec
2022-04-14 03:10:45 +02:00
Umur Ozkul
de379b6c04
Merge branch 'develop' into reducer-dev
2022-04-14 03:03:08 +02:00
Umur Ozkul
daf2a27182
PR#226, add missing variants to switch statements
...
Code is passing unit tests however there were missing variands. Fixed
2022-04-14 02:40:59 +02:00
Quinn Dougherty
b0ff2c19f5
yarn format
2022-04-13 19:18:08 -04:00
Quinn Dougherty
165427f137
refactored to a higher level of abstraction
2022-04-13 10:30:23 -04:00
Quinn Dougherty
e9e6cab099
silenced warning about toString
not having switch case for ArgumentError
2022-04-13 10:26:10 -04:00
Sam Nolan
948a8dd651
Add analytic solutions for normal and lognormal
2022-04-13 15:11:14 +10:00
Quinn Dougherty
b6e423a6e3
fixed bug after rebase: hope it doesn't cause problems
2022-04-13 01:08:51 -04:00
Quinn Dougherty
de81928ea9
Ran yarn format
2022-04-13 01:05:09 -04:00
Quinn Dougherty
af0577f85e
test count: 386
2022-04-13 01:05:09 -04:00
Quinn Dougherty
59fcd6a26c
intermediate commit to checkout something else
2022-04-13 01:05:08 -04:00
Quinn Dougherty
dd53c7554b
(rebase): begin setup for big redo
2022-04-13 01:05:08 -04:00
Quinn Dougherty
9d857bf79b
(rebase): documented ratio of lognormals
2022-04-13 01:05:08 -04:00
Quinn Dougherty
a64cd75ead
inv and cdf
2022-04-13 01:05:08 -04:00
Quinn Dougherty
6a4d615d3d
(rebase): (rebase): (rebase): **refactor**: rm duplicated genericDist
and error
declarations
2022-04-13 01:04:53 -04:00
Sam Nolan
348b1c9ac6
Add normal distribution analytical simplifications
2022-04-13 14:36:30 +10:00
Sam Nolan
117c08bfa9
Fix unweighted average of distributions
2022-04-13 12:03:04 +10:00
Sam Nolan
38135f0c81
Merge branch 'develop' into mix-distributions
2022-04-13 11:22:43 +10:00
Quinn Dougherty
b17f638483
EBindings
-> T.EBindings
2022-04-12 20:48:53 -04:00
Quinn Dougherty
4f95c019eb
yarn format
2022-04-12 20:22:19 -04:00
Sam Nolan
e234951d62
Hotfix bundle failure
2022-04-13 10:14:11 +10:00
Sam Nolan
f2f885f269
Hotfix Typescript checker failing
2022-04-13 10:07:33 +10:00
Umur Ozkul
1b4422bb90
revise lisp references - close umuro/squiggle#50
2022-04-12 16:26:55 +02:00
Umur Ozkul
05b5efce18
remove -> in switch cases. close umuro/squiggle#59
...
squiggle
2022-04-12 16:15:27 +02:00
Umur Ozkul
4fe72b8fb4
remove Reduce_Expression.rsi.
...
Too many changes. Hot target. Preventing development
2022-04-12 15:47:46 +02:00
Umur Ozkul
9c7f930549
Merge branch 'develop' into reducer-dev
...
packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.resi
2022-04-12 15:46:48 +02:00
Sam Nolan
f102d70d80
Add mixture alias
2022-04-12 17:45:44 +10:00
Sam Nolan
60a345dd6d
Implement mx for distributions
2022-04-12 17:39:38 +10:00
Sam Nolan
d316ad0a07
Merge branch 'develop' into reducer-playground
2022-04-12 16:45:14 +10:00
Sam Nolan
440bfabffa
Run prettier on monorepo + fix crashing playground
2022-04-12 15:41:36 +10:00
Umur Ozkul
352cccaab8
Merge branch 'develop' into reducer-dev
2022-04-12 01:47:07 +02:00
Umur Ozkul
87116d12d5
reformat
2022-04-11 16:51:15 +02:00
Umur Ozkul
3a8e6a8f60
Merge branch 'staging' into reducer-dev
2022-04-11 16:42:37 +02:00
Umur Ozkul
660c0c70ae
variables and statements
...
format only reducer
reformat lint
multi-line test
spelling
multi-line semantic mapping
todo multi-line eval
multi-line tests todo
change context to bindings
simplify tests
rename exception test methods
bindings is an expression value
make bindings callable
reformat
Emphasize the nature of Lisp AST
Initial definition of macros
make functions private
fixed functionNode type casting
macro call skeleton
sort ReducerInterface
fix test
macros skeleton
bindings is not a value
assignment semantics
let semantics defined
format
reformat
reformat
TODO function calls and list hd variables are confused
reformat
tmp
works
reformat
reformat
add test
reformat
add test
2022-04-11 16:31:10 +02:00
Sam Nolan
cb07f5f68a
A playground based on reducer
2022-04-11 16:16:29 +10:00
Quinn Dougherty
3689caa1fc
finally nailed the triggers! (I hope)
2022-04-11 01:08:54 -04:00
Quinn Dougherty
d4b00b15c1
debugging triggers again
2022-04-11 01:05:47 -04:00
Quinn Dougherty
19d5fa109b
rescript format
on DistPlus.res
2022-04-11 00:59:47 -04:00
Quinn Dougherty
e4e8e4b847
ran rescript format
on ProgramEvaluator.res
2022-04-11 00:23:15 -04:00
Sam Nolan
61b589d0bd
Change typescript interface to reducer
2022-04-11 13:16:31 +10:00
Sam Nolan
6565d97f53
Rename eval to evaluate
...
eval is a JS keyword
2022-04-11 11:18:38 +10:00
Sam Nolan
e5baf23950
Run prettier in squiggle-lang
2022-04-11 10:51:43 +10:00
Ozzie Gooen
c94a70b93a
Fixed tests
2022-04-09 21:56:05 -04:00
Ozzie Gooen
5b0efbb3a8
Bandwidth -> SampleSetDist_Bandwidth
2022-04-09 21:31:34 -04:00
Ozzie Gooen
4338f482ef
Added genType to SampleSetDist to make pass tests, other minor fixes
2022-04-09 21:24:44 -04:00
Ozzie Gooen
9ad73fe69b
Power should be ** to be consistent
2022-04-09 20:36:33 -04:00
Ozzie Gooen
db104694fd
Cleaned up resultStringToResultError
2022-04-09 20:34:21 -04:00
Ozzie Gooen
f17a842c52
Cleanup from previous refactor
2022-04-09 20:27:03 -04:00
Ozzie Gooen
fa3d874a4e
Start of refactor for toPointSetDist
2022-04-09 20:21:02 -04:00
Ozzie Gooen
61aaca3e2f
Gave SampleSetDist a private type
2022-04-09 18:10:06 -04:00
Ozzie Gooen
9430653b7a
Namechange: Exponential -> Power
2022-04-09 12:37:26 -04:00
Ozzie Gooen
54b6b18d3a
Cleanup and commenting for PR
2022-04-08 22:55:06 -04:00
Ozzie Gooen
2dc57bedc5
Added more tests to JS__Test.ts, and added SampleN functionality to SampleSetDist
2022-04-08 21:31:08 -04:00
Ozzie Gooen
0af0c9e274
Added tests for index.js and fixed some corresponding functionality
2022-04-08 19:48:53 -04:00
Ozzie Gooen
d62ccc27bd
Minor refactor of DistributionOperation Constructors
2022-04-08 16:09:00 -04:00
Ozzie Gooen
4c99a50d89
Fix from CR
2022-04-08 15:57:18 -04:00
Ozzie Gooen
e065a57a66
Added to index.ts
2022-04-08 15:55:04 -04:00
Ozzie Gooen
57196c568b
Added a bunch of manual functions for DistributionOperation
2022-04-08 14:42:14 -04:00
Ozzie Gooen
4b103cb128
Merged with staging
2022-04-08 09:19:03 -04:00
Ozzie Gooen
937a8482fd
Added sparkline and toString to ReducerInterface
2022-04-08 09:08:49 -04:00
Ozzie Gooen
0fa954ae63
Improves sparklines by integrating them more deeply to the codebase
2022-04-08 08:44:04 -04:00
Umur Ozkul
1d550353c9
Merge branch 'staging' into reducer-dev
2022-04-08 11:09:46 +02:00
Sam Nolan
b8d07bd8a4
Add explaining comment to diff
2022-04-08 16:59:15 +10:00
Sam Nolan
d6e18b1c4f
Respond to Ozzie's PR comments
2022-04-08 16:51:38 +10:00
Sam Nolan
a99290ea43
Rename rangeByFloat to rangeFloat
2022-04-08 11:09:31 +10:00
Sam Nolan
bf2f85a8ab
Respond to sparkline PR change requests
2022-04-08 11:02:41 +10:00
Sam Nolan
53f4e56529
Implement generic sparklines with tests
2022-04-08 10:17:01 +10:00
Quinn Dougherty
a00772ef5c
tiny cleanup
2022-04-07 10:21:48 -04:00
Quinn Dougherty
0a5a8a5198
property test framework installed but not used; describe(means) section of unit tests filled out
2022-04-06 18:57:51 -04:00
Umur Ozkul
63a765a4fe
mathjs parse assignment
2022-04-05 23:03:32 +02:00
Umur Ozkul
84f3420369
parse assignment
2022-04-05 22:02:06 +02:00
Ozzie Gooen
c0118af315
Changed warning comment
2022-04-05 15:34:19 -04:00
Ozzie Gooen
d77f984af6
utility -> Utility
2022-04-05 15:32:06 -04:00
Ozzie Gooen
6c282b0c70
Added genType to XYShape to fix tests
2022-04-05 15:23:39 -04:00
Ozzie Gooen
9b494462d4
Removed oldInterpreter
2022-04-05 15:13:45 -04:00
Ozzie Gooen
6b69a94a1a
Added OldInterpreter files
2022-04-05 15:09:47 -04:00
Umur Ozkul
a5bb390370
reformat
2022-04-05 20:56:20 +02:00
Ozzie Gooen
a2729f34cb
Pulled out XYShape to be more separate
2022-04-04 13:41:22 -04:00
Ozzie Gooen
60b760f0cd
Naming refactor of key rescript directories
2022-04-04 11:59:14 -04:00
Ozzie Gooen
51711512fb
Removed Domain from DistPlus
2022-04-04 11:47:34 -04:00
Ozzie Gooen
a5db33cedf
Removed unit from DistPlus
2022-04-04 11:44:42 -04:00
Ozzie Gooen
e4f563fa08
Added unary minus function support to distributions, cleaned tests
2022-04-02 17:06:57 -04:00
Ozzie Gooen
06285dbdc1
Additional testing for GenericDist-Reducer interface, plus getting log, exp to work with 1 param
2022-04-02 16:25:41 -04:00
Ozzie Gooen
688cf0b19e
Changes in response to CR
2022-04-02 11:01:53 -04:00
Ozzie Gooen
e7c2a7db01
Light cleanup of ReducerInterface_GenericDistribution
2022-04-01 15:41:11 -04:00
Ozzie Gooen
18d742b63c
Added symbolic functions and tests for reducer interface distribution code
2022-04-01 13:21:24 -04:00
Ozzie Gooen
28eba9fa74
EvDist -> EvDistribution
2022-03-31 20:28:48 -04:00
Ozzie Gooen
47a574ba8a
Added GenericDistribution Reducer Interface
2022-03-31 20:24:59 -04:00
Ozzie Gooen
5ece2994ba
Full attempt at getting genericDist into Reducer External Lib
2022-03-31 19:58:08 -04:00
Quinn Dougherty
cd231cb917
added 'add' over EvDist, EvDist
2022-03-31 16:44:52 -04:00
Ozzie Gooen
89f917ecc8
Merge branch 'staging' into dist-generic-library
2022-03-31 15:44:18 -04:00
Ozzie Gooen
15534b10ce
Converted most of Operation to not be polymorphic
2022-03-31 14:51:42 -04:00
Ozzie Gooen
680726e8b0
Changed genericDist from being a polymorphic variant
2022-03-31 14:15:21 -04:00
Ozzie Gooen
4b3f24b38d
Converted params to env, named several arguments
2022-03-31 14:07:39 -04:00
Ozzie Gooen
4702cf3e5e
Reorganized Output module in GenericOperation
2022-03-31 13:26:29 -04:00
Ozzie Gooen
d82615cef0
Changed GenericDist outputType from polymorphic variant to regular variant
2022-03-31 09:27:36 -04:00
Ozzie Gooen
f2d03c8f11
Added named paramaters to most GenericDist functions
2022-03-31 09:19:27 -04:00
Ozzie Gooen
d61f521a0e
fmap -> outputmap
2022-03-31 08:41:50 -04:00
Ozzie Gooen
dbac693607
Minor fixes for PR
2022-03-31 08:37:04 -04:00
Quinn
8cbfeec81c
Merge pull request #107 from umuro/reducer-dev
...
Reducer dev 2 (opened on behalf of Umur)
2022-03-30 11:39:57 -04:00
Umur Ozkul
da0e9b9349
fix resi
2022-03-30 15:39:47 +02:00
Umur Ozkul
7c574980b7
PR#107
2022-03-30 13:26:38 +02:00
Umur Ozkul
17ca080ebb
PR#107 show -> toString
2022-03-30 12:53:36 +02:00
Umur Ozkul
12113cad7e
Reducer_Expression.resi
2022-03-30 11:45:30 +02:00
Umur Ozkul
158381dfbb
PR#107
2022-03-30 11:06:30 +02:00
Umur Ozkul
f74716922d
PR#107
2022-03-30 10:34:40 +02:00
Umur Ozkul
9a6522ff29
kill mj acronym
2022-03-30 10:22:51 +02:00
Ozzie Gooen
ffc622fb6d
Responded to two simple CR comments
2022-03-29 21:28:14 -04:00
Ozzie Gooen
2fce3d67e9
fmap2 -> E.R2.fmap
2022-03-29 17:35:33 -04:00
Ozzie Gooen
649f3e833a
Changes as was requested in CR
2022-03-29 17:00:20 -04:00
Ozzie Gooen
cd5680f2dc
Refactored Sparklines.res
2022-03-29 16:31:08 -04:00
Ozzie Gooen
c158b4183b
More refactors of |> to ->
2022-03-29 15:47:32 -04:00
Quinn Dougherty
50f5256dc5
perhaps the final push of PR 124?
2022-03-29 15:27:23 -04:00
Ozzie Gooen
539c7cf783
Trying to change more |> into ->
2022-03-29 15:21:38 -04:00