Language.Copilot.Libs.Statistics
Description
Basic bounded statistics. In the following, a bound n
is given stating
the number of periods over which to compute the statistic (n == 1
computes
it only over the current period).
- max :: (Streamable a, NumE a) => Int -> Spec a -> Spec a
- min :: (Streamable a, NumE a) => Int -> Spec a -> Spec a
- sum :: (Streamable a, NumE a) => Int -> Spec a -> Spec a
- mean :: (Streamable a, Fractional a, NumE a) => Int -> Spec a -> Spec a
Documentation
mean :: (Streamable a, Fractional a, NumE a) => Int -> Spec a -> Spec aSource
Mean value. n
must not overflow
for word size a
for streams over which computation is peformed.