models

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBL_MIN = 2.2250738585072014e-308
)

Variables

This section is empty.

Functions

func DiscreteGamma

func DiscreteGamma(alpha float64, ncat int) []float64

func GenerateRates

func GenerateRates(nsites int, gamma bool, alpha float64, ncat int, discrete bool) (rates []float64, categories []int)

func IncompleteGamma

func IncompleteGamma(x, alpha, ln_gamma_alpha float64) float64

Types

type Model

type Model interface {
	NState() int
	Eigens() (val []float64, leftvectors, rightvectors *mat.Dense, err error)
	Analytical() bool
	Pij(i, j int, l float64) float64
}

type Pij

type Pij struct {
	// contains filtered or unexported fields
}

Probability matrix

func NewPij

func NewPij(m Model, l float64) (pij *Pij, err error)

func (*Pij) Pij

func (pij *Pij) Pij(i, j int) float64

func (*Pij) SetLength

func (pij *Pij) SetLength(l float64) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL