Hello @cesarsouza
I just found out, that the calculation for the lower quartile (25% quantile) is not working correctly, when passing in QuantileMethod.R as method.
I have the following vector:
var v1 = new double[] { 18, 31, 25, 2, 22, 13, 37, 1, 4, 7, 6, 45, 10, 24, 23, 49, 27, 9, 35,
14, 34, 33, 41, 42, 20, 43, 3, 48, 15, 39, 11, 38, 46, 17, 40, 16,
50, 29, 19, 47, 12, 28, 32, 8, 30, 26, 5, 44, 36, 21};
For this vector, I get the following results for the Q1 value:
- v1:
- using Accord: 12.5
- using R: 13.25
Don't know though, where the difference is coming from.
For some other samples I get correct results.
Cheers, Harald