de.jstacs.models.utils
Class StationaryDistribution
java.lang.Object
de.jstacs.models.utils.StationaryDistribution
public class StationaryDistribution
- extends Object
This class can be used to determine the stationary distribution.
- Author:
- Jens Keilwagen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StationaryDistribution
public StationaryDistribution()
getStationaryDistribution
public static double[] getStationaryDistribution(double[] condProbs,
int alphabetSize)
- This method return the stationary distribution.
This distribution can be defined over single symbol, pairs of symbols, ...
- Parameters:
condProbs
- an array containing all conditional probabilities;
- condProbs[0] = P(a_1|b_1)
- condProbs[1] = P(a_2|b_1)
- ...
alphabetSize
- the number of symbols in the alphabet
- Returns:
- the stationary distribution
getStationarySymbolDistribution
public static double[] getStationarySymbolDistribution(double[] probs,
int alphabetSize)
- This method return the stationary symbol distribution.
This distribution can be defined over single symbol, pairs of symbols, ...
- Parameters:
probs
- an array containing all (unconditional) probabilitiesalphabetSize
- the number of symbols in the alphabet
- Returns:
- the stationary symbol distribution
- See Also:
getStationaryDistribution(double[], int)