Commit Graph

281 Commits

Author SHA1 Message Date
Émilie Feral
0be1c43f72 [apps/probability] Make the model law inherit from curve view window
Change-Id: I2e2cf0c7a14cb1cb36c5b22c49b604d659d49bc6
2016-12-21 14:50:36 +01:00
Émilie Feral
983905af59 [apps] Factorize app classes by creating a text field delegate app
Change-Id: Ic9c1ed5ba6eb620389cbe4a009f703ecbfe98c55
2016-12-19 17:30:29 +01:00
Émilie Feral
1f1945fe63 [apps/probability] Draw continuously law curves
Change-Id: I742e46e7ebd7f0cf17d8397c2fe5b250d3a9a558
2016-12-19 14:13:13 +01:00
Émilie Feral
1f4fad1f52 [apps/probability] Color the integral under the curve
Change-Id: I157ee8ed180dab366f89fcdcec82d4329f46a82b
2016-12-19 14:13:13 +01:00
Émilie Feral
7c27ce5ec0 [apps/probability] Correct dirtyness and layout order
Change-Id: I5cdda0c7fc7552ef3e76e870b1012f058c30f3f5
2016-12-19 14:13:06 +01:00
Émilie Feral
c38adbd6c5 [apps] In curve view, add a boolean to decide whether to shift the
origin label

Change-Id: Id5701df32e08030cfd3a2c9e3f7fbc08fc1e2136
2016-12-16 15:15:55 +01:00
Émilie Feral
4602acf2b6 [apps/probability] Tidy calculation subclasses in a folder
Change-Id: I75cfdb11128b06961fc53288cd121799f6e31002
2016-12-16 15:11:39 +01:00
Émilie Feral
7908042804 [apps/probability] Cap the number of operations
Change-Id: I1ceb3230b0de8c1ef9a171bba445aa44ce379363
2016-12-16 14:57:35 +01:00
Émilie Feral
5e0752ca2f [apps/probability] Handle edge case
Change-Id: Ib9c7be51073933013355c6bdc4fbc56e6526468f
2016-12-16 14:51:22 +01:00
Émilie Feral
24c23f761c [liba] add constant INFINITY
Change-Id: I801a23f5bb84bd86a4e93f6c24815737555ee8ce
2016-12-16 14:30:56 +01:00
Émilie Feral
fbadd2ef0e [apps/probability] Change Calculation API (adding heritage)
Change-Id: I56b4391b22086d5296ec034a29378e7b068253a9
2016-12-16 12:58:49 +01:00
Émilie Feral
c00ea95369 [apps/probability] Handle integral calculations
Change-Id: I53097126ba28aeddee0452ceeda42c998c0850cd
2016-12-16 12:58:45 +01:00
Émilie Feral
becf0603e1 [apps/probability] Display an error modal when the parameter is out of
the domain

Change-Id: I47ea5bbf4ac516d9cd876f546b606e3377c621f7
2016-12-15 16:20:13 +01:00
Émilie Feral
dbc9b3d567 [apps/probability] Improve law density window
Change-Id: I4f71b09062a2e6bc4123836e5d3af488b16da213
2016-12-15 16:20:13 +01:00
Émilie Feral
39f7c0d852 [apps/probability] Compute binomial law in a way to avoid to big integer
Change-Id: I8b8405b91532ddd28861828c3d75bef281f171a0
2016-12-15 16:20:13 +01:00
Émilie Feral
3732a707ab [apps/probability] Draw histograms for discrete laws
Change-Id: Ib18418dfd297bfad06f9f4c99c7a3e80cbf9115b
2016-12-15 16:20:07 +01:00
Émilie Feral
8a01e8e2d3 [apps/probability] Improve law models
Change-Id: Ibfbf9df3f7c94b0fb1c4cef6900b5680e5ea3b7d
2016-12-15 16:18:01 +01:00
Émilie Feral
69593fd174 [apps/probability] Delete local context
Change-Id: I1f15cf659b44e4e6b8311109a40b8a5916fde782
2016-12-15 16:18:01 +01:00
Émilie Feral
00bf0cb92d [apps/probability] Delete the expression contained in law model
Change-Id: Id6a7a83a8c3bc1d1674b496189d18eea84a69eda
2016-12-15 13:51:41 +01:00
Émilie Feral
38b8c6dbd7 [apps] Change curve view API
Change-Id: I77984536d1a8b4197b02e2f005590537a46d8084
2016-12-15 13:51:41 +01:00
Émilie Feral
f85ee9bc68 [apps/probability] Simplify the curve view
Change-Id: I0a198c21e280e6ef300cf3ab06d690574c433737
2016-12-15 13:51:41 +01:00
Émilie Feral
7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00
Émilie Feral
bbe1b06eae [apps][escher] Use only one draftTextBuffer by controller (as you cannot
edit all cells at the same time)

Change-Id: Ifbc6e8c7b7f2dd17539666ed3b1253f1c28ef873
2016-12-15 13:51:40 +01:00
Émilie Feral
bed8b40e5b [apps/probability] Add a comment for future optimisation
Change-Id: Ifb70e995772d63ed036078c5caa7082068fb2337
2016-12-15 13:51:40 +01:00
Émilie Feral
b1b8f3a028 [apps/probability] Tidy all law models in a folder law/
Change-Id: Ic2713ee57336fc48bfca25c4f94c4bb191894007
2016-12-15 13:51:40 +01:00
Émilie Feral
2a79d8bfd9 [apps/probability] Make law model an abstract class with inheritance for
all specific laws (binomial...)

Change-Id: Ida6d5bfb7a3fbfc288393cd2f7e9e9b934798073
2016-12-15 13:51:40 +01:00
Émilie Feral
8c284ba34f [escher][apps] CHange textField API
Change-Id: I766d153b7f7429473f297707a08358051123accc
2016-12-15 13:51:40 +01:00
Émilie Feral
32d9f9516a [apps] Change name: scale->gridUnit
Change-Id: I1616bdf2c317fa2c8d35ff243ca5ae125ef9a799
2016-12-13 15:10:02 +01:00
Émilie Feral
372e5c0ef1 [apps/probability] Reinit the calculation when arriving on calculation
page

Change-Id: I9b28bcf86945ff286848a823e996630fb49feb89
2016-12-08 15:21:52 +01:00
Émilie Feral
67f9756943 [apps/probability] Enable to modify the calculation elements from the
calculation page

Change-Id: Icbcd5e4ae5e797587b78e3b539620c13ad54df03
2016-12-08 15:21:52 +01:00
Émilie Feral
2573562b41 [apps/probability] Display the calculation parameters on the calculation
page

Change-Id: Icc4ba1d84666e3e9117259d2d0e3f6572be405c0
2016-12-08 15:21:52 +01:00
Émilie Feral
d637711ba5 [apps/probability] Add the calculation parameter in the law model
Change-Id: Ifa82e9ae8d083149718c48cd43b7db5c38d9d8d0
2016-12-08 15:21:52 +01:00
Émilie Feral
30497c3813 [apps/probability] Update the subviews according to the type of
calculation given in law model

Change-Id: I9820cee5a6106928ebcfb30137ffd18cdad68fae
2016-12-08 15:21:52 +01:00
Émilie Feral
c08f31f799 [apps/probability] Handle selection in calculation controller
Change-Id: Ifc35c33c3fd8251daf112877074bdd8505aa1339
2016-12-08 15:21:52 +01:00
Émilie Feral
e20a976c8e [apps/probability] Add editable text subviews to the calculation
controller

Change-Id: I47833fbecd6eccc2b8dc8be816321846843b385f
2016-12-08 15:21:52 +01:00
Émilie Feral
85db237036 [apps/probability] In image table view, display the right image
corresponding to the type of calculation chosen

Change-Id: I7a1b6ef00d51088930de4df75a27530bec43f6e7
2016-12-08 15:21:52 +01:00
Émilie Feral
39bac510f5 [apps/probability] Add the type of calculation to the law model
Change-Id: I2256ea2d810ffc2919e575a01457a5e3286bb65a
2016-12-08 15:21:52 +01:00
Émilie Feral
f2c31963ea [apps/probability] Add an image table view in the calculation controller
Change-Id: I79408a274f29e0e5b5bca6b760f447aeaf406d92
2016-12-08 15:21:52 +01:00
Émilie Feral
e25d5fe794 [apps/probability] Create a class image table view
Change-Id: I96b90988226f29a5aef167c9d5fc2ffb7a9c28b9
2016-12-08 15:21:52 +01:00
Émilie Feral
067ee84242 [apps/probability] add images to select the type of probabilistic
calculation to compute

Change-Id: I0cf1a475c92df1e223e9f54649921090b42d986d
2016-12-08 15:21:52 +01:00
Émilie Feral
4bef23b7e2 [apps] Make the abstract curve view hold methods to draw labels
Change-Id: Ib1451b51c6d16db27487b5c9d34cd345fcf379f0
2016-12-08 15:21:52 +01:00
Émilie Feral
1b771eddd0 [apps/probability] Display the calculation controller when clicking on
the "suivant" button

Change-Id: Id79f48ab02c8d771aac55f6be30c83d4302ea8a1
2016-12-08 15:21:52 +01:00
Émilie Feral
095f2a2891 [apps/probability] Create a class calculation controller
Change-Id: I87f5a712d213ae3f4dd5553b64e2b641bd0601ba
2016-12-08 15:21:52 +01:00
Émilie Feral
5205e71e5a [apps/probability] Create a class law curve view inheriting from curve
view

Change-Id: I3a6aacd3532c4eb9303b9970765e08f546850439
2016-12-08 15:21:52 +01:00
Émilie Feral
f7eb0b97b3 [apps/probability] Improve the law model using the evaluate context
Change-Id: I33b9c9ce0a8120ff66ea6614fa7c5ac58a59b572
2016-12-08 15:21:52 +01:00
Émilie Feral
620b64a583 [apps/probability] Create a class evaluate context for probability app
Change-Id: I38448ddeec25225edad1d96bf89d32d1eb86915d
2016-12-08 15:21:52 +01:00
Émilie Feral
4086a5e74a [apps/probability] Make parameters controller inherit from float
parameter controller

Change-Id: I02649795c656f191c1c71ae7495f9a993114bdfb
2016-12-08 15:21:52 +01:00
Émilie Feral
e92672be83 [apps/probability] Make the app expression text field delegate
Change-Id: I01cf8de46366fc38d84390cb79436d6d654580bf
2016-12-08 15:21:52 +01:00
Émilie Feral
4cb1d51d4c [apps/probability] Tidy PNG files in a folder
Change-Id: I5a6e23341323641b47dc1f050f718ede34c079a2
2016-12-08 15:21:52 +01:00
Émilie Feral
c1ff9f3cd8 [apps/probability] Improve page to enter law parameter
Change-Id: I585329221739efc640e3456c4a40761c5da85d3d
2016-12-08 15:21:52 +01:00