Copyright | (c) Dominik Schrempf 2021 |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Thu Jun 13 14:06:45 2019.
Synopsis
- data Support
- toSupport :: Double -> Either String Support
- toSupportUnsafe :: Double -> Support
- class HasMaybeSupport e where
- getMaybeSupport :: e -> Maybe Support
- class HasMaybeSupport e => HasSupport e where
- getSupport :: e -> Support
- setSupport :: Support -> e -> e
- modifySupport :: (Support -> Support) -> e -> e
- normalizeBranchSupport :: HasSupport e => Tree e a -> Tree e a
- collapse :: (Eq e, Eq a, HasSupport e) => Support -> Tree e a -> Tree e a
Non-negative support value
Non-negative support value.
However, non-negativity is only checked with toSupport
, and negative values
can be obtained using the Num
and related instances.
See also the documentation of Length
.
Instances
toSupportUnsafe :: Double -> Support Source #
Do not check if value is negative.
class HasMaybeSupport e where Source #
Class of data types that may have a support value.
getMaybeSupport :: e -> Maybe Support Source #
Instances
HasMaybeSupport () Source # | |
Defined in ELynx.Tree.Support getMaybeSupport :: () -> Maybe Support Source # | |
HasMaybeSupport Length Source # | |
Defined in ELynx.Tree.Export.Newick | |
HasMaybeSupport Support Source # | |
Defined in ELynx.Tree.Support | |
HasMaybeSupport PhyloExplicit Source # | |
Defined in ELynx.Tree.Phylogeny | |
HasMaybeSupport Phylo Source # | |
Defined in ELynx.Tree.Phylogeny |
class HasMaybeSupport e => HasSupport e where Source #
Class of data types with measurable and modifiable support values.
getSupport :: e -> Support Source #
setSupport :: Support -> e -> e Source #
modifySupport :: (Support -> Support) -> e -> e Source #
Instances
HasSupport Support Source # | |
Defined in ELynx.Tree.Support | |
HasSupport PhyloExplicit Source # | |
Defined in ELynx.Tree.Phylogeny getSupport :: PhyloExplicit -> Support Source # setSupport :: Support -> PhyloExplicit -> PhyloExplicit Source # modifySupport :: (Support -> Support) -> PhyloExplicit -> PhyloExplicit Source # |
Functions on trees
normalizeBranchSupport :: HasSupport e => Tree e a -> Tree e a Source #
Normalize branch support values. The maximum branch support value will be set to 1.0.