Commit Graph

411 Commits

Author SHA1 Message Date
Romain Goyet
ada205b1a7 [build] Use variants
- Move helpers functions into build/helpers.mak
- Move official warning into official targets only
2020-04-03 22:26:55 -04:00
Léa Saviot
e828491171 [apps/probability] Test on finite integral computations 2020-03-16 11:40:40 +01:00
Léa Saviot
29b4c75227 [apps/probability] Assert discrete distributions override evaluation 2020-03-16 11:40:40 +01:00
Léa Saviot
5c70fdc7a6 [apps/probability] Handle a == b case in finite integral computation
For non continuous distributions, P(a <= X <= a) is not necessarily
null.
2020-03-16 11:40:40 +01:00
Romain Goyet
5dee4a8166 [apps] Add screen telemetry identification 2020-02-17 10:31:24 -05:00
Romain Goyet
7f43b73049 [apps] Don't forget to call viewWillAppear
At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
2020-02-17 10:31:24 -05:00
Émilie Feral
72ef9d5fd7 [apps/probability] Clean Makefile 2020-02-12 15:13:26 +01:00
Léa Saviot
eff0a26835 [apps/probability] Clean distribution_controller
Cleaner .cpp and fix the number of cells
2020-02-12 15:13:24 +01:00
Léa Saviot
155d2a4758 [apps/probability] Remove unneeded parameter 2020-02-12 15:13:21 +01:00
Léa Saviot
0260e2ffb4 [apps/proba] Fisher distribution authorized parameter values 2020-02-12 15:13:21 +01:00
Léa Saviot
8c801392a5 [apps/proba] Fisher distribution zoom values 2020-02-12 15:13:21 +01:00
Léa Saviot
09a2d554d1 [apps/probability] Fisher tests 2020-02-12 15:13:21 +01:00
Léa Saviot
55a4e3d94c [apps/proba] Implement Fisher formulae 2020-02-12 15:13:21 +01:00
Léa Saviot
93c96186c4 [apps/probability] Initial Fisher distribution 2020-02-12 15:13:21 +01:00
Léa Saviot
08cdf5a8d2 [apps/probability/i18n] Put some definitions in universal 2020-02-12 15:13:21 +01:00
Émilie Feral
dfd4811136 [apps/shared] CurveView: change API to expose 'drawLabel' and
'drawLabelsAndGraduations'
2020-02-12 15:13:20 +01:00
Émilie Feral
b47ded4074 [apps/calculation] Add a parameter in Shared::CurveView to choose the
curve thickness
2020-02-12 15:13:20 +01:00
Léa Saviot
9f018eb9d9 [escher/view] setFrame and layoutSubviews can be forced 2020-02-12 15:13:15 +01:00
Émilie Feral
4d593a6149 [poincare] PrintFloat: take into account the distinction between char
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Léa Saviot
c768c15826 [apps/proba] Fix Normal distribution undercurve colouring
Reverts 01d2db1342
2019-09-25 11:14:29 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Léa Saviot
7406fcae98 [apps/proba] Fix Student distribution 2019-09-09 15:11:20 +02:00
Léa Saviot
29c3e3a206 [apps/distribution] remove falty assertion 2019-09-09 15:10:50 +02:00
Léa Saviot
aa45adb49a [apps/proba] Handle infinite xMax in exponential distribution 2019-09-09 11:25:20 +02:00
Léa Saviot
dd97b23624 [apps/proba] k limit for Chi2 law
After the limit, P(X<k) returns undef
2019-09-06 10:40:59 +02:00
Léa Saviot
80f3c1fd0a [apps/proba] Use DBL_EPSILON in cnditions 2019-09-06 10:23:32 +02:00
Léa Saviot
d9e49cb369 [apps/proba/dist] More laxist assert 2019-09-06 10:23:32 +02:00
Émilie Feral
de2f79b915 [probability] Distribution: loosen constraints on
cumulativeDistributiveInverseForProbabilityUsingIncreasing... precision
2019-09-05 13:59:30 +02:00
Émilie Feral
5481d3c822 [poincare] Fix compilation: change std::abs to std::fabs when the
argument isn't complex
2019-09-05 13:38:46 +02:00
Émilie Feral
db4cfb1763 [poincare] Solver: increase IncreasingFunctionRoot precision 2019-09-05 13:27:18 +02:00
Émilie Feral
22d49f9a14 [apps/probability] Fix typo 2019-09-05 12:06:48 +02:00
Léa Saviot
1b169e0836 [apps/solver] Fix bad assertion 2019-09-04 17:34:50 +02:00
Léa Saviot
1c34eab71e [poincare/solver] Fix precision handling in IncreasingFunctionRoot
Scenario: ChiSquared distribution, P(X<?) = 0.1
2019-09-04 16:55:39 +02:00
Léa Saviot
b712338a18 [apps/proba] Fix dome distribution behaviours for x = infinity 2019-09-03 10:10:23 +02:00
Léa Saviot
7f2e52f6a6 [apps/proba] Fix result consistency
Scenario: Poisson distribution, lambda = 4, P(x < ?) = 1.3E-112
2019-09-02 17:56:56 +02:00
Émilie Feral
6de497c2ed [apps/shared] Templatize FloatParameterController to handle float/double
parameters.

Fix bug: when entering "e^234" as a parameter of a model keeping floats,
the FloatParameterController would accept the number (because e^234 is
defined in double) and store an undefined value in the model (because
e^234 is undefined in float).
2019-09-02 16:55:39 +02:00
Léa Saviot
24d1594255 [apps] Draw curves according to their definition domain 2019-08-29 11:07:22 +02:00
Léa Saviot
c71ef7ff79 [apps/graph] Evaluation methods renaming 2019-08-29 11:07:22 +02:00
Léa Saviot
7ea7ecd3c2 [poincare/coordinate2D] Rename member values to x and y 2019-08-29 11:07:22 +02:00
Léa Saviot
a15bc53e06 [poincare/Coordinate2D] Template for double or float 2019-08-29 11:07:22 +02:00
Ruben Dashyan
fbee2d81e4 [apps/*/curve_view] Use drawCartesianCurve specifically for drawing Cartesian curves 2019-08-29 11:07:22 +02:00
Léa Saviot
3dd5112a0b [poincare] Use reg incomplete beta function in binomial distribution 2019-08-27 11:09:16 +02:00
Léa Saviot
f4c9889b67 [apps/proba] Tests about binomial law 2019-08-27 11:09:16 +02:00
Léa Saviot
a8a5ecfd4e [apps/proba] Factorize code 2019-08-26 16:04:08 +02:00
Léa Saviot
1f2f5f4c28 [apps/proba] BinomCDF 2019-08-26 15:04:27 +02:00
Léa Saviot
ff0105182d [apps/proba] P(X<?) = 0 gives 0 for ChiSquaredDistribution 2019-08-26 10:14:38 +02:00
Léa Saviot
61a66f56d4 [apps/proba] Check value is ok before computing 2019-08-26 10:14:00 +02:00
Léa Saviot
294def02bd [apps/proba] Improve Distribution::finiteIntegralBetweenAbscissas 2019-08-23 15:27:53 +02:00
Léa Saviot
0840ca7a1e [apps/poincare] Move NormalDistribution to Poincare 2019-08-23 13:47:52 +02:00
Léa Saviot
3a03132c6c [apps/toolbox] Probability submenu 2019-08-22 17:21:28 +02:00