@thomasnield I've finished almost everything and it looks really fine. The last stumbling block is percentile statistics. The commons-math uses rather complicated algorithm (some variant of nearest-rank method). But there are simpler methods. Do you have an understanding, how it should work?