Package jline.lang.processes
Class MarkedMarkovProcess
java.lang.Object
jline.lang.processes.Process
jline.lang.processes.MarkovProcess
jline.lang.processes.MarkedMarkovProcess
- All Implemented Interfaces:
Serializable
A class for continuous time Markov chain where transitions are labeled
- See Also:
-
Field Summary
FieldsFields inherited from class jline.lang.processes.MarkovProcess
infGen, isfinite, stateSpace -
Constructor Summary
ConstructorsConstructorDescriptionMarkedMarkovProcess(Matrix infGen, MatrixCell eventFilt, List<Map<String, Object>> evs) Creates a MarkedCTMC with the specified generator, event filters, and eventsMarkedMarkovProcess(Matrix infGen, MatrixCell eventFilt, List<Map<String, Object>> evs, boolean isFinite) Creates a MarkedCTMC with the specified generator, event filters, events, and finite flagMarkedMarkovProcess(Matrix infGen, MatrixCell eventFilt, List<Map<String, Object>> evs, boolean isFinite, Matrix stateSpace) Creates a MarkedCTMC with the specified generator, event filters, events, finite flag, and state space -
Method Summary
Modifier and TypeMethodDescriptionSolve for embedded probabilities for all eventsembeddedSolve(int[] evset) Solve for embedded probabilities for specified event setstatic MarkedMarkovProcessCreate MarkedCTMC from sample system aggregation.Get the event filter matricesGet the event listConvert to MAP for a specific event type, node, and classConvert to MAP for a specific eventMethods inherited from class jline.lang.processes.MarkovProcess
fromSampleSysAggr, fromSampleSysAggr, fromSampleSysAggr, fromSampleSysAggr, getGenerator, getProbState, getProbState, getStateSpace, isFinite, rand, sample, sample, sample, setStateSpace, solve, toDTMC, toDTMC, toTimeReversed
-
Field Details
-
eventFilt
-
eventList
-
-
Constructor Details
-
MarkedMarkovProcess
Creates a MarkedCTMC with the specified generator, event filters, and events- Parameters:
infGen- the infinitesimal generator matrixeventFilt- the event filter matricesevs- the event list
-
MarkedMarkovProcess
public MarkedMarkovProcess(Matrix infGen, MatrixCell eventFilt, List<Map<String, Object>> evs, boolean isFinite) Creates a MarkedCTMC with the specified generator, event filters, events, and finite flag- Parameters:
infGen- the infinitesimal generator matrixeventFilt- the event filter matricesevs- the event listisFinite- whether the CTMC is finite
-
MarkedMarkovProcess
public MarkedMarkovProcess(Matrix infGen, MatrixCell eventFilt, List<Map<String, Object>> evs, boolean isFinite, Matrix stateSpace) Creates a MarkedCTMC with the specified generator, event filters, events, finite flag, and state space- Parameters:
infGen- the infinitesimal generator matrixeventFilt- the event filter matricesevs- the event listisFinite- whether the CTMC is finitestateSpace- the state space representation
-
-
Method Details
-
toMAP
Convert to MAP for a specific event- Parameters:
ev- the event to convert to MAP- Returns:
- the MAP representation
-
toMAP
Convert to MAP for a specific event type, node, and class- Parameters:
evtype- the event typenode- the node indexjobclass- the job class index- Returns:
- the MAP representation
-
embeddedSolve
Solve for embedded probabilities for specified event set- Parameters:
evset- the set of event indices to solve for (null for all events)- Returns:
- the embedded probabilities for each event
-
embeddedSolve
Solve for embedded probabilities for all events- Returns:
- the embedded probabilities for each event
-
getEventFilt
Get the event filter matrices- Returns:
- the event filter matrices
-
getEventList
Get the event list- Returns:
- the event list
-
fromSampleSysAggr
Create MarkedCTMC from sample system aggregation. Matches MATLAB MarkedMarkovProcess.fromSampleSysAggr(). Constructs a MarkedMarkovProcess from sampled state trajectories by: 1. Computing the Cartesian product of per-node states to get system states 2. Building a DTMC from transition counts 3. Computing holding times 4. Creating the infinitesimal generator 5. Building event filter matrices from the event list- Parameters:
sa- the sample aggregation (SampleSysState from SSA/CTMC solver)- Returns:
- MarkedCTMC constructed from samples
-