CiwConverter

Convert a process model into Ciw network parameters.

Usage

Source

CiwConverter()

Parameters

model: ProcessModel
Process model to convert.

Attributes

model: ProcessModel
Process model to convert.

Methods

Name Description
__init__() Initialise the converter.
generate_params() Generate Ciw network parameters from the process model.
normal_moments_from_lognormal() Convert lognormal moments to normal moments.

__init__()

Initialise the converter.

Usage

Source

__init__(model)
Parameters
model: ProcessModel
Process model to convert.

generate_params()

Generate Ciw network parameters from the process model.

Usage

Source

generate_params()
Returns
dict of str to Any
Parameters compatible with ciw.create_network.

normal_moments_from_lognormal()

Convert lognormal moments to normal moments.

Usage

Source

normal_moments_from_lognormal(mean, variance)
Parameters
mean: float

Mean of the lognormal distribution.

variance: float
Variance of the lognormal distribution.
Returns
tuple of float
Mean and standard deviation of the underlying normal distribution.