|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.mcgill.lmp.finite.TransitionMatrix
A transition matrix.
Constructor Summary | |
TransitionMatrix(double[][] transitionProbabilities)
Create a new transition probability matrix with the provided probabilities. |
|
TransitionMatrix(java.lang.String description)
Create a new transition probabilities based on a String description. |
Method Summary | |
double |
Pr(State from,
java.util.Collection to)
|
double |
Pr(State from,
State to)
|
int |
size()
The number of states of the underlying probability space. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TransitionMatrix(java.lang.String description)
description
- public TransitionMatrix(double[][] transitionProbabilities)
transitionProbabilities
- Method Detail |
public int size()
public double Pr(State from, State to)
from
- The initial state.to
- The destination state.
public double Pr(State from, java.util.Collection to)
from
- The initial state.to
- A set of States, the destination states.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |