#705 closed request (fixed)
kurtosis and skewness from a Histogram
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | major | Milestone: | yat 0.9 |
Component: | statistics | Version: | trunk |
Keywords: | Cc: |
Description
The functions skewness and kurtosis take Vector which is to convenient when having a histogram with some bins with millions of data points. For mean and variance we nicely provide the Averager class that can calculate these moments quickly using the second argument in add(double x, int n)
. I suggest something similar for third and fourth moment.
Change History (6)
comment:1 Changed 11 years ago by
Milestone: | yat 0.x+ → yat 0.9 |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
comment:4 Changed 11 years ago by
comment:5 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [2809]) closes #705. Create a common interface class for average classes (averager_base) that is extended by additional base classes, averager_base2, averager_base3, and averager_base4. Averager is an implementation of averager_base2, and Averager4 is an implementation of averager_base4. For completeness added also classes Averager1 and Averager3 that implement averager_base and averager_base3, respectively. Using curiously recurrent template pattern to avoid vtables which has the downside that runtime polymorphism is not allowed (but also not really wanted here).
I plan to create a class Averager4, similar to Averager but with more info (third and fourth moments)