Commit Graph

103 Commits

Author SHA1 Message Date
Émilie Feral
c35d95bb83 [apps/probability] Handle all edge cases
Change-Id: Ic2fb06ef28498c3a9bfcd3acbce7458cde248403
2017-01-15 20:05:00 +01:00
Émilie Feral
a74eef903a [poincare] Redesign Float::convertTotext
Change-Id: Id27d9472147b5e443ee296feca891392fad735c8
2017-01-15 20:04:59 +01:00
Émilie Feral
d80272f695 [apps] In curve view, correct draw histogram
Change-Id: I33e78200f551a20fd66df24c2f1dfdedf8488491
2017-01-15 20:04:59 +01:00
Émilie Feral
affda5eae9 [apps] Modular reimplementation of application models (stores and
ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
2017-01-10 13:35:19 +01:00
Émilie Feral
78198a5dcf [escher] In metric, add a constant: ParameterCellHeight
Change-Id: I6d90c9083d3d6de2308e86800b39104af5fc0457
2017-01-09 15:08:56 +01:00
Émilie Feral
2293d9f933 [apps] Factorize the reload methods in all subclasses of curve view
Change-Id: I77e04df7ab36b46582c221f7e07797e6d1bce0e2
2017-01-09 15:08:55 +01:00
Émilie Feral
aa91ebfb14 [apps] Delete useless obsoletfunction in float parameter controller
Change-Id: I2421de22519aacc2ef329cca12dc6fa3b6ad845d
2017-01-09 15:08:55 +01:00
Émilie Feral
bf9d80ab3d [apps/probability] Make calculation text fields wider
Change-Id: I8362361ca2c7638e67b13805e345505ebb096c58
2017-01-09 15:08:54 +01:00
Émilie Feral
ff3d8dce5a [apps] Display float in decimal mode in curve views and title
Change-Id: I3c069f3e001b43c98d4c54975b02636dad330acf
2017-01-09 15:08:54 +01:00
Émilie Feral
30d9a1e227 [apps/probability] Correct error: confusion between left and right
integrals

Change-Id: Ic1fe49701ec37fffb2bd09f83b2e65a50a03e2a6
2017-01-09 15:08:54 +01:00
Émilie Feral
8d94b4f26b [apps]Make the curve view margins customisable
Change-Id: I7a632ae9ad98ae0b92a2259fa8465c3aecfbf570
2017-01-09 15:08:54 +01:00
Émilie Feral
5fa64fadcc [apps/probability] Delete useless methods in calculation (type recovery)
Change-Id: I52933b092fd0022153cef4c8ed42ed88c749dd16
2017-01-09 15:08:54 +01:00
Émilie Feral
d4c7656186 [apps/probability] In calculation, add methods: lowerBound and
upperbound

Change-Id: Ieeffe78b40b3a4166a184000de3d8bd05b5da3c0
2017-01-09 15:08:54 +01:00
Émilie Feral
cc6e5f6685 [apps/probability] In binomial law, avoid double cast
Change-Id: I594f70110c1933a04ae4b4f6358821386898a037
2017-01-09 15:08:54 +01:00
Émilie Feral
88166440b0 [apps] In curve view, merge drawDiscreteHistogram and drawHistogram
methods in a unique method

Change-Id: I7093f1c0d639cc77f7e73bddf15fadc5c967823b
2017-01-09 15:08:54 +01:00
Émilie Feral
699ee7ddc5 [apps] CHange name in curve view:
evaluateCurveAtAbscissa->evaluateModelWithParameter

Change-Id: Iface679b85d20fc59e8197eb14b516ad86d97862
2017-01-09 15:08:54 +01:00
Émilie Feral
e8bb416bec [apps] In cuve view, always put KDContext and KDRect as first parameters
Change-Id: I606f6bbe798fba9c75cd98e8857cd020b0eb0ca0
2017-01-09 15:08:54 +01:00
Émilie Feral
fd8613ac7a [apps/statistics] Redesign data API with Romain
Change-Id: I666125ae85e04311806379a4ec2255c256f253f2
2017-01-09 15:08:53 +01:00
Émilie Feral
453891c0da [apps] Factorize the method textFieldDidReceiveEvent in the abstract
class float parameter controller

Change-Id: I374e46664f6514246fff6378d97ae142c7130ca9
2017-01-09 15:08:53 +01:00
Émilie Feral
8aff2dac2b [apps] In curve view, distinguish 2 methods to draw discrete histograms
and any histogram

Change-Id: I52cec9a3c063d80b0385f8dded1e3de9f6837fdc
2017-01-09 15:08:53 +01:00
Émilie Feral
f00492fb59 [apps] Add a margin around the window when drawing curves
Change-Id: Iaf806c1f9e710dabc89f78b60d1c2985c9659012
2016-12-21 14:50:36 +01:00
Émilie Feral
4d62c6c9bd [apps] Use curve view window in the abstract class curve view
Change-Id: I2c54cb111944f294e00d45244f23cdda9984bf02
2016-12-21 14:50:36 +01:00
É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