Commit Graph

54 Commits

Author SHA1 Message Date
Laury
77167d1706 [statistics] Added 3 new measurements 2022-07-04 11:12:19 +02:00
Gabriel Ozouf
5749d871b0 [apps/i18n] Moved country preferences
Instead of being hardcoded in the python script, preferences specific to
each country are defined in the country_preferences.h and .csv files.

Change-Id: I71e276341e1586935b4d5814be5b1be80fa170a0
2020-11-04 15:11:44 +01:00
Gabriel Ozouf
2b59509fdd [apps/i18n] Derive preferences from country
Each country comes with an set of preferences, built at compile time by
apps/i18n.py, used to define :
  - the exam mode
  - the method for computing quartiles
  - the unit system in which to output the results with units
Functions to access those preferences are available in
via sharedGlobalPreferences.

Change-Id: I220ebaa9b9e8954dfe33cd51936f47505b98978d
2020-11-04 15:11:44 +01:00
Gabriel Ozouf
86f7a87d45 [apps/statistics] International quartiles
Implemented a new method for computing quartiles, used for all countries
except France and Italy. Quartiles are now computed as the medians of
the lower half and upper half of the dataset.

Change-Id: Idfb89a617799eca1d23326ebbcfbbea58e6236b8
2020-11-04 15:11:44 +01:00
Hugo Saint-Vignes
eed1648363 [apps/statistics] Improve variance accuracy for statistics
Change-Id: Ie8f6f93c8e95940662e72a23619b53ac4ab0d6b6
2020-11-04 14:45:34 +01:00
Léa Saviot
59aea9ca83 [apps/statistics] Factorize HistogramParamCtrlr::setParamAtIdx 2020-06-04 14:50:00 +02:00
Léa Saviot
250f4ec3dd [apps/statistics] Clean code 2020-06-04 14:50:00 +02:00
Ruben Dashyan
38a4a44633 [apps/statistics/store] Fix typo 2019-09-26 10:35:06 +02:00
Émilie Feral
709479552a [apps/statistics] Store: when changing x/y range, we need to update
xGridUnit (even if the range is supposed to be constant, it might be
clipped or modified to assert min < max)
2019-09-06 16:16:10 +02:00
Émilie Feral
45d42287e2 [apps/shared] MemoizedCurveViewRange is composed of two Range1D to
factorize setters and getters
2019-09-03 15:34:35 +02:00
Léa Saviot
380ac52cd8 [ion/crc32] crc32Byte and crc32Word 2019-04-25 17:11:06 +02:00
Léa Saviot
bbd5cff042 [apps/stats] Do not fetch numberOfPairsOfSeries too often 2018-11-08 11:44:57 +01:00
Léa Saviot
6c1cdb21ef [apps/stats] Median does not use null-frequency values
This fixes the median for (1,0), (2,1), (3,0), (4, 1). It should be 3
(the mean between 2 and 4), not 2.5 (the mean between 2 and 3).
2018-11-08 11:44:57 +01:00
Léa Saviot
0038cb537a [statistics] For median and quartiles, compare absolute frequencies
Instead of relative frequencies
2018-09-12 13:40:10 +02:00
Léa Saviot
02899b863b [poincare] Median computation (and quartile...) tackles imprecision 2018-09-12 13:40:10 +02:00
Léa Saviot
5e7888f417 [apps/stats] Better double comparison 2018-07-10 15:41:12 +02:00
Léa Saviot
20ab57d922 [apps/stats] Fix median computation 2018-07-10 15:41:12 +02:00
Léa Saviot
a83ef756b3 [apps/stats/reg] Share Store methods 2018-06-12 15:50:42 +02:00
Léa Saviot
3c536523c5 [app/stats] Fix wrong assert
When a series has two elements only and they are the same, the median is
this element and there is no element after that.
2018-06-11 13:58:26 +02:00
Léa Saviot
70ad21232d [apps/shared] FloatPairStore -> DoublePairStore 2018-06-11 13:58:25 +02:00
Léa Saviot
73dd1cf335 [shared] Make FloatPairStore::m_numberOfPairs private 2018-06-11 13:58:24 +02:00
Léa Saviot
cf03d7e7ac [apps/stats] Memoize number of non empty series 2018-06-11 13:58:24 +02:00
Léa Saviot
b503213037 [apps/stats] Memoize emptiness of series 2018-06-11 13:58:24 +02:00
Léa Saviot
02c81e76fb [apps/stats] Remove compilation warning about non used value 2018-06-11 13:58:23 +02:00
Léa Saviot
357d3fbad0 [apps/shared/stats] Make store functions const 2018-06-11 13:58:23 +02:00
Léa Saviot
249b15750a [apps/stats] Display all non empty series in calculation 2018-06-11 13:56:32 +02:00
Léa Saviot
31ad501a14 [apps/stats] Median/Quartiles computation for non integer sizes 2018-05-29 15:34:49 +02:00
Léa Saviot
8997a7671e [apps/stats] Fix quartiles computation for non integers value sizes 2018-05-29 15:34:49 +02:00
Léa Saviot
c84fd45b97 [apps/statistics] Show several histograms 2018-05-29 15:34:49 +02:00
Léa Saviot
11251f03de [apps] Fix Statistics: now displays three series 2018-05-29 15:34:48 +02:00
Léa Saviot
33fa32d55f [apps] Multiple data series in FloatPairStore 2018-05-29 15:34:48 +02:00
Léa Saviot
600f5307c4 [apps] Use sumOfOccurrences() in statistics/store.cpp 2018-05-29 15:34:48 +02:00
Léa Saviot
9e47b62775 [apps] Inline statistics/store.h 2018-05-29 15:34:48 +02:00
Léa Saviot
dfca5d8438 [apps/statistics] Allow non integer value sizes 2018-05-29 15:34:48 +02:00
Claire Savinas
27490dff20 [apps] Shared: "Smart" incrementation of the first column of statistics and regression apps
The default value of the first column is set to have the same increment as the two previous rows, when possible.
This allow faster data entry when the values of the first column are evenly separated.
2018-03-21 15:59:24 +01:00
Émilie Feral
d7abc80097 [apps] Add a row in statistics calculation
Change-Id: I930abde428850a0b7a76e3f77ef961ee195da042
2017-09-27 09:46:02 +02:00
Émilie Feral
ff8fe2b498 [apps/statistics] Simplify histogram controller and resolve bugs: with
very large values, casting in float gives approximate values that
trigger bugs

Change-Id: I5aac31ad07f267f1b96ee3406b041e527cf247ba
2017-08-25 17:41:16 +02:00
Émilie Feral
b893a7d0aa [apps/statistics] Fix oversight in store
Change-Id: I929c25994d6ba59021941646611debdfb18f0cbf
2017-08-25 17:37:04 +02:00
Émilie Feral
be8a0c6df3 [apps] Replace sizeInBits>>2 sizeInBits/sizeof(uint32_t) in checksums
Change-Id: I4f96514caa4552d2158bb9ebdc328a6453554934
2017-08-25 14:18:27 +02:00
Émilie Feral
b91455ca71 [apps/statistics] Avoid hanging in histogram controller
Change-Id: I76cecd739db0a13b064eb9c634a4b04376a8cc20
2017-08-25 11:20:48 +02:00
Émilie Feral
ae8461b1d4 [apps/statistics] Fix oversight in store
Change-Id: I615a2a0d482ea44ad7b5886c98ad2f0ed23a1305
2017-08-25 11:20:48 +02:00
Émilie Feral
f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
f7911f4d36 [apps/statistics] Fix bug in quartile computation
Change-Id: Ie5bbcf745b7a4f9766db1d3c39ca42d8489970da
2017-03-31 17:05:54 +02:00
Émilie Feral
153c1ea05a [apps/statistics] Fix bug in quartile methods
Change-Id: I50e039a2fd99162728269c8e38c4eb5087171596
2017-03-29 18:36:46 +02:00
Émilie Feral
08642bad26 [apps/statistics] Repaire histogram controller
Change-Id: Ib8b7a9bed80a0f22a7c6701f863299e4bb5c1527
2017-03-07 15:03:11 +01:00
Émilie Feral
abfebdaa81 [apps/statistics] Repare histogram view controller
Change-Id: I5d8bbf7fd3b9508a22c4eaeecc8290c68842a5ed
2017-03-07 13:28:26 +01:00
Émilie Feral
23026b6718 [apps/shared] Namespace shared
Change-Id: I6dec7ce900bb4e801a25c567fe5e242cb744cf29
2017-02-13 17:15:06 +01:00
Émilie Feral
611a368e6f [apps/statistics] Fix bug: correct scrollToBarAtIndex method
Change-Id: I345b71cf3c60ff0378d1894030ef0aa028d3502c
2017-01-27 12:00:35 +01:00
Émilie Feral
c3008ca360 [apps] Improvements of MVC structure regarding curve views and ranges
Change-Id: Iec8031dbf349c34c18694dffabd02ef9c88ebf2d
2017-01-18 14:31:42 +01:00