Commit Graph

7312 Commits

Author SHA1 Message Date
Émilie Feral
939a2eacb5 [apps/statistics] Improve the calculation page based on the data model
Change-Id: I5b49d3aee0cae503e6bb35079c98d37c943b2458
2017-01-09 15:08:54 +01:00
Émilie Feral
c1dc9b972a [apps/stastistics] Add methods to compute statistics calculation in the
data model

Change-Id: I5c32b9ec391631cefc68996410802adbf6ca1775
2017-01-09 15:08:54 +01:00
Émilie Feral
4ee0d26726 [escher] Add method to set the alignment in event odd buffer text view
Change-Id: I2d16f1b503b48a993ad9c0760a4c8255ea49ff31
2017-01-09 15:08:54 +01:00
Émilie Feral
924b0372d0 [escher][apps] Move value cell class to escher folder renamed even odd
buffer text view

Change-Id: I6c8b8fdcd90d2b6847ec94f65c4b2e64204b52ba
2017-01-09 15:08:54 +01:00
Émilie Feral
43ac44c1b6 [apps/graph/list] Fix error: Avoid editing the button add new function
Change-Id: I4999765eacef9e2bdac5aad467d0cc99d35de2e9
2017-01-09 15:08:54 +01:00
Émilie Feral
014a9dc125 [apps/stastistics] Delete useless stack view controller of the app
Change-Id: Ia9adefffa0058fd422872d0ece83af24e071a0d7
2017-01-09 15:08:54 +01:00
Émilie Feral
50ac7d3fd7 [apps/statistics] Display an empty page in calculation tab if no data to
calculate on

Change-Id: Ib4e0c57485fd1bf3c4e7a1cd07f8f1d63cd17f6d
2017-01-09 15:08:53 +01:00
Émilie Feral
91e168e4ee [apps/statistics] Fix error: writing title text on editable cells
Change-Id: Iac82f14a7e83620a968084489ede27350bfdfdef
2017-01-09 15:08:53 +01:00
Émilie Feral
1de9e3d4b3 [apps/statisstics] Avoid displaying histogram or box when all data have
0 size

Change-Id: I14206cab379d5560e66360b0131e5a939ad9ad29
2017-01-09 15:08:53 +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
a9433779a3 [apps/statistics] Give the data model to the box controller
Change-Id: I2ccb0747853675b9a4b9a89b091767c6f75570ac
2017-01-09 15:08:53 +01:00
Émilie Feral
3c7ac73c5e [apps/statistics] Throw an error when the user set a negative value as
bin width

Change-Id: I0203ce403e469f4616af74399e451f6ed41d3024
2017-01-09 15:08:53 +01:00
Émilie Feral
1719569b65 [apps/statistics] Optimize the dirty tracking of histogram
Change-Id: I1f4a05729bce0cd4131692ef3f1112a03e73c005
2017-01-09 15:08:53 +01:00
Émilie Feral
cb042957af [apps/statistics] Display the banner below the histogram
Change-Id: I4e4c2aba6ac286de932a6d52b653c59cb1a1b565
2017-01-09 15:08:53 +01:00
Émilie Feral
7e457017f2 [apps/statistics] Create a class banner view
Change-Id: I480db952437ecbdd7383e55423a75da8f9deba4d
2017-01-09 15:08:53 +01:00
Émilie Feral
c4edca5f05 [apps/statistics] Add a bottom margin to display the banner below the
histogram

Change-Id: Icd69e08f924d507e8839d930d6e8f1b93841e74b
2017-01-09 15:08:53 +01:00
Émilie Feral
f319ebd1ee [apps/statistics] Prevent memory leaking in data class
Change-Id: I58024d11edc8087602994472f29a09b22126264f
2017-01-09 15:08:53 +01:00
Émilie Feral
f1f67acca6 [apps/statistics] Display the histogram parameter page when clicking on
the histogram parameter button

Change-Id: Ie9bbe3f94bf1c4eb5901b39f82a2e4caf36e3c0e
2017-01-09 15:08:53 +01:00
Émilie Feral
7224a7b16c [apps/statistics] Create a class Histogram parameter controller
Change-Id: I269ef1faa0aaecbd6d328ab0985dd428ae387702
2017-01-09 15:08:53 +01:00
Émilie Feral
7d1f254b92 [apps/probability] Reinit the binWidth in the data when the data has
changed

Change-Id: I81748aef8895ae9c8729fe8def9cf3e22668e369
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
434906bbdb [apps/statistics] Update the data model to handle the bin selection and
th window scrolling

Change-Id: Iee2fe9e3f7f11d8b5c146aca9167f36f2d040d83
2017-01-09 15:08:53 +01:00
Émilie Feral
4c66e820d0 [apps/statistics] Handle bin selection in histogram controller
Change-Id: Ie6c8c99087b99b6d16cbdd4463875c187963077f
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
40be7c0c05 [apps/statistics] Use the histogram view in the histogram controller
Change-Id: If674d3df6f8cff5c7a49cd718f4f88e9c95baa34
2017-01-09 15:08:53 +01:00
Émilie Feral
aef540efb6 [apps/statistics] Create a histogram view inheriting from cruve view
Change-Id: I7e6d027e50ec040e1fe6ee6354d9275dc3a025d9
2017-01-09 15:08:53 +01:00
Émilie Feral
2b9026db76 [apps/statistics] Improve the data model
Change-Id: I1efa7394a99c1eb397433d493a7ce7cbc162bf1f
2017-01-09 15:08:53 +01:00
Émilie Feral
f34f258caf [apps/statistics] Add a bin width variable in data model
Change-Id: Ie64230acdcb618e8c01f99da03f06801ab9c4152
2017-01-09 15:08:53 +01:00
Émilie Feral
bbe4723218 [apps] Correct error: when drawing curves, ignore NAN values
Change-Id: I9e525f9e3f07e014fd60c88f19d932ad27d2c835
2017-01-09 15:08:53 +01:00
Romain Goyet
025405d01d [ion] Add Ion::crc32
Takes only 32bit values. Uses non-reversed data/input

Change-Id: I8a776064af69047f7a8fa1399cf8a484f42b9b18
2017-01-06 17:22:29 +01:00
Romain Goyet
c1db79b5f9 [ion] Add a backlight namespace
Change-Id: I0b9ec9a1b342d4b949776f0303eca69a28d1de91
2017-01-05 16:00:10 +01:00
Romain Goyet
9b2fecfb12 [ion] Add Ion::usleep
Change-Id: Ife70133410e55c3f0af9a838543042a3da618119
2017-01-05 16:00:01 +01:00
Romain Goyet
7252e3c1f4 [ion] Update the RGB LED pins
Change-Id: I25c116d67cde14a305eb67dfaf5488f8916f9ba5
2017-01-05 15:49:09 +01:00
Émilie Feral
e310d8162a Merge changes Iaf806c1f,I2c54cb11,Iabf36299,I2e2cf0c7,I21a08f18, ...
* changes:
  [apps] Add a margin around the window when drawing curves
  [apps] Use curve view window in the abstract class curve view
  [apps/statistics] Make data model inherit from curve view window
  [apps/probability] Make the model law inherit from curve view window
  [apps/graph/graph] Make the model graph window inherit from curve view window
  [apps] Create an abstract model curve view window
  [apps/graph/graph] When redrawing the curve, slightly exceed the rect to ensure the continuity of the curve
  [apps/graph/graph] Add a banner view in the graph view
  [apps/graph/graph] Create a class banner view
  [apps/probability] Add a pointer to the data model in the histogram controller
  [apps/probability] Improve data controller to delete pairs of data
  [escher] Add a method in even odd editable text cell to access editable text cell
  [apps/probability] Add method in data model (to delete pairs)
  [escher] Correct syntax error
2016-12-27 14:14:59 +01:00
Émilie Feral
819177ae47 Merge changes I9871d3a1,I06051c40,I69eec933,Ic9c1ed5b,I0970343e, ...
* changes:
  [apps/graph/values] Make values controller inherit from editable cell table view controller
  [apps/statistics] Make data controller inherits from editable cell table view controller
  [apps] Create a class editable cell table view controller
  [apps] Factorize app classes by creating a text field delegate app
  [apps/statistics] Use data model to improve data controller
  [apps/statistics] Create a model data
  [escher] Change even odd editable cell constructor
  [apps/graph/value] Use even odd editable pointer cell in values controller instead of title cell
  [escher] Add a class even odd pointer text cell
  [apps] Use even odd editable text cell in values controller
  [escher] Create a even odd editable text cell inheriting from even odd and composing with editable text cell
  [apps] add the stat apps in the container
  [apps/statistics] Create the structure of the stat apps
  [escher] In tab view controller, enable a fourth tab
  [escher] In tab view controller, implement lazy loaded for tab titles
  [apps/probability] Draw continuously law curves
  [apps/probability] Color the integral under the curve
  [apps/probability] Correct dirtyness and layout order
  [apps] Enable to color under curves in curve view
  [apps] In curve view, add a boolean to decide whether to shift the origin label
  [apps/probability] Tidy calculation subclasses in a folder
  [apps/probability] Cap the number of operations
  [apps/probability] Handle edge case
  [liba] add constant INFINITY
  [apps/probability] Change Calculation API (adding heritage)
  [apps/probability] Handle integral calculations
  [apps/probability] Display an error modal when the parameter is out of the domain
  [apps/probability] Improve law density window
  [apps/probability] Compute binomial law in a way to avoid to big integer
  [apps/probability] Draw histograms for discrete laws
  [apps] Correct errors in curve view
  [apps/probability] Improve law models
  [apps/probability] Delete local context
  [liba] Add expf and lgammaf to the math library
2016-12-27 13:52:15 +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
cda9582a7c [apps/statistics] Make data model inherit from curve view window
Change-Id: Iabf36299d20b17d9ac6fb4ae3a6166513f9a50c7
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
2f3bfaf209 [apps/graph/graph] Make the model graph window inherit from curve view
window

Change-Id: I21a08f181725800937ec5ee043cc40a0ac301a6a
2016-12-21 14:50:35 +01:00
Émilie Feral
9ce66a254b [apps] Create an abstract model curve view window
Change-Id: Iec94d0d75d03bb7a2a3e7085f38a0732639baff7
2016-12-21 14:50:35 +01:00
Émilie Feral
4e1bd2b477 [apps/graph/graph] When redrawing the curve, slightly exceed the rect to
ensure the continuity of the curve

Change-Id: I7dcdc53dc14819b7bf1327a7ba98d459b3bc9c63
2016-12-21 14:50:35 +01:00
Émilie Feral
ba67ef4a2e [apps/graph/graph] Add a banner view in the graph view
Change-Id: Iafa0dcfc730911264d5b045c14bde54f432f53a2
2016-12-21 14:50:35 +01:00
Émilie Feral
30fb8307bc [apps/graph/graph] Create a class banner view
Change-Id: I76e4f1a4300f631bbd93855bc992beb81bc5fecf
2016-12-21 14:50:27 +01:00
Romain Goyet
86e33b8fdb [poincare] Some level of 1.2E3 support
Change-Id: I9618967de161a553ae35ec6dbcf1486c16dadb0d
2016-12-21 10:13:28 +01:00
Romain Goyet
47b16a06dc [poincare] Parse floats
Change-Id: I3cfc063e1059d3769e1038593e90e6f56c0d7ce1
2016-12-21 10:13:28 +01:00
Romain Goyet
5963345981 [poincare] NULL-termination and Integer parsing
Discard non-10 base handling for now

Change-Id: I487e85a169c7ae5780c83b0bcf3c40bd3daac0fe
2016-12-21 10:13:06 +01:00
Romain Goyet
dd4a3e618f [poincare] Better error handling
We were ignoring yyparse's return value...

Change-Id: I09c44d13440aa578b4748a8119a0d557eec4ef00
2016-12-20 17:25:45 +01:00
Émilie Feral
bd8ecf73db [apps/probability] Add a pointer to the data model in the histogram
controller

Change-Id: I1297e10f1e30133d93e96becfb4bc49eb7a8a28d
2016-12-20 10:14:51 +01:00
Émilie Feral
ef9b47555b [apps/probability] Improve data controller to delete pairs of data
Change-Id: Ifc64250e277c61976c82a91c21a68dd775d7cac0
2016-12-20 10:08:03 +01:00