online 0.2.3.0 → 0.3.0.0
raw patch · 4 files changed
+11/−14 lines, 4 files
Files
- online.cabal +3/−4
- src/Online/Averages.hs +1/−1
- src/Online/Quantiles.hs +4/−3
- stack.yaml +3/−6
online.cabal view
@@ -1,11 +1,11 @@--- This file has been generated from package.yaml by hpack version 0.20.0.+-- This file has been generated from package.yaml by hpack version 0.28.2. -- -- see: https://github.com/sol/hpack ----- hash: 0e52ec83c8732aad81bae413979e21c904825f1675946b464248c15cb19ae656+-- hash: 23ad67040f06c24d3eb357c48f10a503d156cb1d8cf9ded5a9f749d497c3f937 name: online-version: 0.2.3.0+version: 0.3.0.0 synopsis: online statistics description: transformation of statistics to online algorithms category: statistics@@ -18,7 +18,6 @@ license-file: LICENSE build-type: Simple cabal-version: >= 1.10- extra-source-files: stack.yaml
src/Online/Averages.hs view
@@ -151,7 +151,7 @@ would estimate the one-step autocorrelation relationship of the previous value and the current value over the entire sample set. -}-autocorr :: (BoundedField a) => Fold a a -> Fold (a, a) a -> Fold a a+autocorr :: (RealFloat a) => Fold a a -> Fold (a, a) a -> Fold a a autocorr central corrf = case central of (Fold mStep mBegin mDone) ->
src/Online/Quantiles.hs view
@@ -16,7 +16,8 @@ import Data.List.NonEmpty (NonEmpty) import Data.TDigest import Data.TDigest.Internal-import Data.TDigest.Postprocess ()+import Data.TDigest.Tree.Internal (TDigest(..), size, emptyTDigest, insertCentroid, relMaxSize, absMaxSize, toMVector)+import Data.TDigest.Postprocess (HistBin, histogram) import qualified Data.Vector.Algorithms.Heap as VHeap import qualified Data.Vector.Unboxed as VU import NumHask.Prelude@@ -86,8 +87,8 @@ onlineCompress :: OnlineTDigest -> OnlineTDigest onlineCompress otd@(OnlineTDigest Nil _ _) = otd onlineCompress otd@(OnlineTDigest t _ _)- | Data.TDigest.Internal.size t > relMaxSize * compression &&- Data.TDigest.Internal.size t > absMaxSize = onlineForceCompress otd+ | Data.TDigest.Tree.Internal.size t > relMaxSize * compression &&+ Data.TDigest.Tree.Internal.size t > absMaxSize = onlineForceCompress otd | otherwise = otd where compression = 25
stack.yaml view
@@ -1,11 +1,8 @@-resolver: nightly-2018-04-05+resolver: nightly-2018-06-02 packages: - . -extra-deps:- - numhask-0.2.0.0- - numhask-prelude-0.0.3.0- - tdigest-0.1+extra-deps: [] -allow-newer: true+# allow-newer: true