packages feed

HLearn-distributions 1.0.0 → 1.0.0.1

raw patch · 2 files changed

+5/−5 lines, 2 filesdep ~HLearn-algebra

Dependency ranges changed: HLearn-algebra

Files

HLearn-distributions.cabal view
@@ -1,5 +1,5 @@ Name:                HLearn-distributions-Version:             1.0.0+Version:             1.0.0.1 Synopsis:            Distributions for use with the HLearn library Description:         This module is used to estimate statistical distributions from data.  It is based on the algebraic properties of the "HomTrainer" type class from the HLearn-algebra package. Category:            Data Mining, Machine Learning, Statistics@@ -14,7 +14,7 @@  Library     Build-Depends:      -        HLearn-algebra          >= 0.1.2,+        HLearn-algebra          >= 1.0.0.1,         ConstraintKinds         >= 0.0.1,         base                    >= 3 && < 5,         
src/HLearn/Models/Distributions/Multivariate/Interface.hs view
@@ -111,9 +111,9 @@ type family HList2TypeList hlist :: [a] type instance HList2TypeList (HList xs) = xs -type family Index (xs::[a]) (i::Nat1) :: a-type instance Index (x ': xs) Zero = x-type instance Index (x ': xs) (Succ i) = Index xs i+-- type family Index (xs::[a]) (i::Nat1) :: a+-- type instance Index (x ': xs) Zero = x+-- type instance Index (x ': xs) (Succ i) = Index xs i  type family Replace2D (n :: Nat1) (xs :: [ [ a ] ]) (newval :: a) :: [ [ a ] ] type instance Replace2D Zero ((x ': xs) ': ys) newval = (newval ': xs) ': ys