SpnModels

object SpnModels

Some example SPN models, each of which can be instantiated with either discrete or continous states.

class Object
trait Matchable
class Any

Value members

Concrete methods

def ar[S](c: DenseVector[Double])(implicit evidence$7: State[S]): Spn[S]

A simple auto-regulatory network model

A simple auto-regulatory network model

Value Params
p

Vector of rates for the 8 reactions

Returns

An Spn object, which can be passed into a Step function, for example

def id[S](p: DenseVector[Double])(implicit evidence$3: State[S]): Spn[S]

Imigration-death model

Imigration-death model

Value Params
p

Vector of rates for the 2 reactions (imigration and death)

Returns

An Spn object, which can be passed into a Step function, for example

def lv[S](p: DenseVector[Double])(implicit evidence$1: State[S]): Spn[S]

Lotka-Volterra model

Lotka-Volterra model

Value Params
p

Vector of rates for the 3 reactions (prey reproduction, predator-prey interaction, predator death)

Returns

An Spn object, which can be passed into a Step function, for example

def lv4[S](p: DenseVector[Double])(implicit evidence$2: State[S]): Spn[S]

4-parameter Lotka-Volterra model

4-parameter Lotka-Volterra model

Value Params
p

Vector of rates for the 4 reactions (prey reproduction, prey consumption, predator reproduction, predator death)

Returns

An Spn object, which can be passed into a Step function, for example

def mm[S](p: DenseVector[Double])(implicit evidence$6: State[S]): Spn[S]

Michaelis-Menten enzyme kinetics model

Michaelis-Menten enzyme kinetics model

Value Params
p

Vector of rates for the 3 reactions

Returns

An Spn object, which can be passed into a Step function, for example

def seir[S](p: DenseVector[Double])(implicit evidence$5: State[S]): Spn[S]

SEIR model

SEIR model

Value Params
p

Vector of rates for the 3 reactions (S->E, E->I, and I->R)

Returns

An Spn object, which can be passed into a Step function, for example

def sir[S](p: DenseVector[Double])(implicit evidence$4: State[S]): Spn[S]

SIR model

SIR model

Value Params
p

Vector of rates for the 2 reactions (S->I and I->R)

Returns

An Spn object, which can be passed into a Step function, for example