Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Rasterific Graphics.Rasterific Represent a vector
class ArityPeano Dim v =>
Vector (v :: Type -> Type) afixed-vector Data.Vector.Fixed Type class for vectors with fixed length. Instance should provide two functions: one to create vector from N elements and another for vector deconstruction. They must obey following law:
inspect v construct = v
For example instance for 2D vectors could be written as:data V2 a = V2 a a type instance V2 = 2 instance Vector V2 a where construct = Fun V2 inspect (V2 a b) (Fun f) = f a b
class ArityPeano Dim v =>
Vector (v :: Type -> Type) afixed-vector Data.Vector.Fixed.Cont Type class for vectors with fixed length. Instance should provide two functions: one to create vector from N elements and another for vector deconstruction. They must obey following law:
inspect v construct = v
For example instance for 2D vectors could be written as:data V2 a = V2 a a type instance V2 = 2 instance Vector V2 a where construct = Fun V2 inspect (V2 a b) (Fun f) = f a b
module Optics.Extra.Internal.
Vector No documentation available.
-
prometheus-client Prometheus No documentation available.
-
No documentation available.
module Data.Array.Repa.Repr.
Vector No documentation available.
-
A new data structure for accurate on-line accumulation of rank-based statistics such as quantiles and trimmed means. . See original paper: "Computing extremely accurate quantiles using t-digest" by Ted Dunning and Otmar Ertl for more details https://github.com/tdunning/t-digest/blob/master/docs/t-digest-paper/histo.pdf.
Examples
>>> quantile 0.99 (tdigest [1..1000] :: TDigest 25) Just 990.5
>>> quantile 0.99 (tdigest [1..1000] :: TDigest 3) Just 990.3...
t-Digest is more precise in tails, especially median is imprecise:>>> median (forceCompress $ tdigest [1..1000] :: TDigest 10) Just 500.5
Semigroup
This operation isn't strictly associative, but statistical variables shouldn't be affected.>>> let td xs = tdigest xs :: TDigest 10
>>> median (td [1..500] <> (td [501..1000] <> td [1001..1500])) Just 750.5
>>> median ((td [1..500] <> td [501..1000]) <> td [1001..1500]) Just 750.5
The linear is worst-case scenario:>>> let td' xs = tdigest (fairshuffle xs) :: TDigest 10
>>> median (td' [1..500] <> (td' [501..1000] <> td' [1001..1500])) Just 750.5
>>> median ((td' [1..500] <> td' [501..1000]) <> td' [1001..1500]) Just 750.5
-
Extensions to the standard immutable Vector API.
-
No documentation available.