Package

smfsb

Permalink

package smfsb

Object containing basic types used throughout the library.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. smfsb
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CsvRow[T] extends AnyRef

    Permalink

    Type class for vectors that can be rendered to a CSV string (and a Breeze DenseVector[Double]), extended by State

  2. implicit class CsvRowSyntax[T] extends AnyRef

    Permalink

    Syntax for CsvRow

  3. trait DataSet[D] extends AnyRef

    Permalink

    Data set type class, for ABC methods

  4. type DoubleState = DenseVector[Double]

    Permalink

    Alias for a Breeze DenseVector[Double]

  5. type HazardVec = DenseVector[Double]

    Permalink

    Type for a SPN hazard vector

  6. type IntState = DenseVector[Int]

    Permalink

    Alias for a Breeze DenseVector[Int]

  7. type LogLik = Double

    Permalink

    Type representing log-likelihoods - just an alias for Double.

    Type representing log-likelihoods - just an alias for Double. All likelihoods in this library are on a log scale. There should be no raw likelihoods passed into or out of any user-facing function.

  8. case class MarkedSpn[S](species: List[String], m: S, pre: DenseMatrix[Int], post: DenseMatrix[Int], h: (S, Time) ⇒ HazardVec)(implicit evidence$2: State[S]) extends Spn[S] with Product with Serializable

    Permalink

    Case class for SPNs that include an initial marking

  9. sealed trait Spn[S] extends AnyRef

    Permalink

    Main trait for stochastic Petri nets (SPNs)

  10. trait State[S] extends CsvRow[S]

    Permalink

    State type class, with implementations for Breeze DenseVector Ints and Doubles

  11. trait Thinnable[F[_]] extends AnyRef

    Permalink

    A type class for things which can be "thinned", with an implementation for Stream.

    A type class for things which can be "thinned", with an implementation for Stream. Useful for MCMC algorithms.

  12. implicit class ThinnableSyntax[T, F[T]] extends AnyRef

    Permalink

    Provision of the .thin syntax for Thinnable things

  13. type Time = Double

    Permalink

    Type representing time, but just an alias for Double

  14. type Ts[S] = List[(Time, S)]

    Permalink

    The main time series class, for representing output from simulation functions, and for observed time course data

  15. case class UnmarkedSpn[S](species: List[String], pre: DenseMatrix[Int], post: DenseMatrix[Int], h: (S, Time) ⇒ HazardVec)(implicit evidence$1: State[S]) extends Spn[S] with Product with Serializable

    Permalink

    Case class for SPNs without an initial marking

Value Members

  1. object Abc

    Permalink

    Functions for parameter inference using ABC (and ABC-SMC) methods

  2. object Mcmc

    Permalink

    Functions for constucting generic Metropolis-Hastings MCMC algorithms, and associated utilities.

    Functions for constucting generic Metropolis-Hastings MCMC algorithms, and associated utilities. Can be used in conjunction with an unbiased estimate of marginal model likelihood for constructing pseudo-marginal MCMC algorithms, such as PMMH pMCMC.

  3. object Mll

    Permalink

    Functions associated with particle filtering of Markov process models against time series data and the computation of marginal model likelihoods.

  4. object Sim

    Permalink

    Functions for simulating data associated with a Markov process given an appropriate transition kernel.

  5. object SpnModels

    Permalink

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

  6. object Step

    Permalink

    Functions which accept a Spn and return a function for simulating from the transition kernel of that model

  7. implicit val dvdState: State[DoubleState]

    Permalink

    Evidence that DoubleState belongs to the State type class

  8. implicit val dviState: State[IntState]

    Permalink

    Evidence that IntState belongs to the State type class

  9. implicit val streamThinnable: Thinnable[Stream]

    Permalink

    A Thinnable instance for Stream

  10. implicit val tsdsDs: DataSet[Ts[DoubleState]]

    Permalink

    Evidence that Ts[DoubleState] is a DataSet

  11. implicit val tsisDs: DataSet[Ts[IntState]]

    Permalink

    Evidence that Ts[IntState] is a DataSet

Inherited from AnyRef

Inherited from Any

Ungrouped