| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Math.Clustering.Hierarchical.Spectral.Types
Contents
Synopsis
- type ClusteringTree a = Tree (ClusteringVertex a)
- data ClusteringVertex a = ClusteringVertex {
- _clusteringItems :: !(Items a)
- _ngMod :: !Q
- data EigenGroup
- clusteringTreeToDendrogram :: ClusteringTree a -> Dendrogram (Items a)
- clusteringTreeToDendrogramCumulative :: ClusteringTree a -> Dendrogram (Items a)
- getClusterItemsDend :: Foldable t => t (Items a) -> [Items a]
- getClusterItemsTree :: ClusteringTree a -> [Items a]
- newtype Q = Q {}
- type NumEigen = Int
Documentation
type ClusteringTree a = Tree (ClusteringVertex a) Source #
data ClusteringVertex a Source #
Constructors
| ClusteringVertex | |
Fields
| |
Instances
data EigenGroup Source #
Constructors
| SignGroup | |
| KMeansGroup |
Instances
| Read EigenGroup Source # | |
Defined in Math.Clustering.Hierarchical.Spectral.Types Methods readsPrec :: Int -> ReadS EigenGroup # readList :: ReadS [EigenGroup] # readPrec :: ReadPrec EigenGroup # readListPrec :: ReadPrec [EigenGroup] # | |
| Show EigenGroup Source # | |
Defined in Math.Clustering.Hierarchical.Spectral.Types Methods showsPrec :: Int -> EigenGroup -> ShowS # show :: EigenGroup -> String # showList :: [EigenGroup] -> ShowS # | |
| Generic EigenGroup Source # | |
Defined in Math.Clustering.Hierarchical.Spectral.Types Associated Types type Rep EigenGroup :: Type -> Type # | |
| type Rep EigenGroup Source # | |
Defined in Math.Clustering.Hierarchical.Spectral.Types | |
clusteringTreeToDendrogram :: ClusteringTree a -> Dendrogram (Items a) Source #
Convert a ClusteringTree to a Dendrogram. Modularity is the distance.
clusteringTreeToDendrogramCumulative :: ClusteringTree a -> Dendrogram (Items a) Source #
Convert a ClusteringTree to a Dendrogram. Modularity is the distance, such that the distance is the modularity plus the maximum distance of each branch.
getClusterItemsDend :: Foldable t => t (Items a) -> [Items a] Source #
Gather clusters (leaves) from the dendrogram.
getClusterItemsTree :: ClusteringTree a -> [Items a] Source #
Gather clusters (leaves) from the tree.
Orphan instances
| Read a => Read (Dendrogram a) Source # | |
Methods readsPrec :: Int -> ReadS (Dendrogram a) # readList :: ReadS [Dendrogram a] # readPrec :: ReadPrec (Dendrogram a) # readListPrec :: ReadPrec [Dendrogram a] # | |
| Generic (Dendrogram a) Source # | |
Associated Types type Rep (Dendrogram a) :: Type -> Type # | |
| ToJSON a => ToJSON (Dendrogram a) Source # | |
Methods toJSON :: Dendrogram a -> Value # toEncoding :: Dendrogram a -> Encoding # toJSONList :: [Dendrogram a] -> Value # toEncodingList :: [Dendrogram a] -> Encoding # | |
| FromJSON a => FromJSON (Dendrogram a) Source # | |
Methods parseJSON :: Value -> Parser (Dendrogram a) # parseJSONList :: Value -> Parser [Dendrogram a] # | |