de.jstacs.models.utils
Class StationaryDistribution

java.lang.Object
  extended by de.jstacs.models.utils.StationaryDistribution

public class StationaryDistribution
extends Object

This class can be used to determine the stationary distribution.

Author:
Jens Keilwagen

Constructor Summary
StationaryDistribution()
           
 
Method Summary
static double[] getStationaryDistribution(double[] condProbs, int alphabetSize)
          This method return the stationary distribution.
static double[] getStationarySymbolDistribution(double[] probs, int alphabetSize)
          This method return the stationary symbol distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationaryDistribution

public StationaryDistribution()
Method Detail

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) probabilities
alphabetSize - the number of symbols in the alphabet
Returns:
the stationary symbol distribution
See Also:
getStationaryDistribution(double[], int)