elynx-markov-0.6.0.0: Simulate molecular sequences along trees
Copyright(c) Dominik Schrempf 2021
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Data.MarkovProcess.MixtureModel

Description

Creation date: Tue Jan 29 19:17:40 2019.

To be imported qualified.

Synopsis

Types

type Weight = Double Source #

Mixture model component weight.

data Component Source #

A mixture model component has a weight and a substitution model.

Getters

Building mixture models

fromSubstitutionModels :: Name -> Vector Weight -> Vector SubstitutionModel -> MixtureModel Source #

Create a mixture model from a list of substitution models.

Transformations

concatenate :: Name -> Vector MixtureModel -> MixtureModel Source #

Concatenate mixture models.

scale :: Double -> MixtureModel -> MixtureModel Source #

Scale all substitution models of the mixture model.

normalize :: MixtureModel -> MixtureModel Source #

Globally normalize a mixture model so that on average one event happens per unit time.

appendNameComponents :: Name -> MixtureModel -> MixtureModel Source #

Append byte string to all substitution models of mixture model.