úÎ < J(c) Hans Hoglund 2012 BSD-stylehans@hanshoglund.sestableCnon-portable Provides a monoid for calculating arithmetic means.None+=BK A monoid for  values.=This is actually just the free monoid with an extra function J for extracing the (arithmetic) mean. This function is used to implement , so you can use  whenever a (, ) is required.,toRational $ mconcat [1,2::Average Rational]3 % 2(toRational $ mconcat [1,2::Sum Rational]3 % 1,toRational $ mconcat [1,2::Product Rational]2 % 18Return the average of all monoidal components. If given , return zero.8Return the average of all monoidal components. If given  , return .         average-0.6.1Data.Monoid.AverageAverage getAverageaverage maybeAveragebaseGHC.RealReal Data.MonoidMonoidmempty Data.MaybeNothing$fAffineSpaceAverage$fVectorSpaceAverage$fAdditiveGroupAverage$fFloatingAverage $fRealAverage$fFractionalAverage $fNumAverage $fOrdAverage $fEqAverage