Package jline.api
Class MC
java.lang.Object
jline.api.MC
APIs for Markov Chains.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix
Normalize the input matrix diagonal to be an infinitesimal generator.static Matrix
ctmc_rand
(int length) Form a random infinitesimal generator of a CTMCstatic Ret.ctmcSimulation
ctmc_simulate
(Matrix Q, double[] pi0, int n) Form a random infinitesimal generator of CTMCstatic Matrix
ctmc_solve
(Matrix Q) Return the steady-state probability of a CTMC.static Matrix
Compute the infinitesimal generator of the time-reserved CTMCstatic Matrix
ctmc_uniformization
(Matrix pi0, Matrix Q, double t) Return the transient probability distribution of the CTMC via the uniformization method.static Matrix
Normalize a given non-negative matrix into a DTMCstatic Matrix
dtmc_rand
(int length) Form a random infinitesimal generator of a DTMCstatic Matrix
dtmc_solve
(Matrix P) Returns the steady-state solution of a DTMC.static Matrix
dtmc_stochcomp
(Matrix P, List<Integer> I) Returns the stochastic complement of a DTMCstatic Matrix
Compute the infinitesimal generator of the time-reversed DTMC.
-
Constructor Details
-
MC
public MC()
-
-
Method Details
-
dtmc_stochcomp
Returns the stochastic complement of a DTMC- Parameters:
P
- Transition matrix of the DTMCI
- Indexes of states to be kept in the stochastic complement- Returns:
- Transition matrix of the stochastic complement
- Throws:
RuntimeException
- If the transition matrix is null
-
dtmc_solve
Returns the steady-state solution of a DTMC.- Parameters:
P
- Transition matrix of the DTMC- Returns:
- Steady-state solution vector of the DTMC
-
dtmc_timereverse
Compute the infinitesimal generator of the time-reversed DTMC.- Parameters:
P
- Infinitesimal generator of the DTMC- Returns:
- Infinitesimal generator of the time-reversed DTMC
-
ctmc_solve
Return the steady-state probability of a CTMC.- Parameters:
Q
- Infinitesimal generator of the CTMC- Returns:
- Steady-state probability vector
-
ctmc_uniformization
Return the transient probability distribution of the CTMC via the uniformization method.- Parameters:
pi0
- Initial state the CTMCQ
- Infinitesimal generator of the CTMCt
- Transient analysis period boundary [0,t]- Returns:
- Transient probability vector at time t
-
ctmc_makeinfgen
Normalize the input matrix diagonal to be an infinitesimal generator.- Parameters:
Q
- Candidate infinitesimal generator of the CTMC- Returns:
- Infinitesimal generator
-
ctmc_timereverse
Compute the infinitesimal generator of the time-reserved CTMC- Parameters:
Q
- Infinitesimal generator of the CTMC- Returns:
- Infinitesimal generator of the time-reversed CTMC
-
dtmc_makestochastic
Normalize a given non-negative matrix into a DTMC- Parameters:
P
- nonegative matrix- Returns:
- Transition matrix of the DTMC
-
dtmc_rand
Form a random infinitesimal generator of a DTMC- Parameters:
length
- size of random matrix- Returns:
- Infinitesimal generator of CTMC
-
ctmc_rand
Form a random infinitesimal generator of a CTMC- Parameters:
length
- size of random matrix- Returns:
- Infinitesimal generator of CTMC
-
ctmc_simulate
Form a random infinitesimal generator of CTMC- Parameters:
Q
- infinitesimal generator of CTMCpi0
- initial state distribution vectorn
- times of simulations- Returns:
- Infinitesimal generator of CTMC
-