Class ChowLiuOutput

java.lang.Object
  extended by OutputData
      extended by ChowLiuOutput

public class ChowLiuOutput
extends OutputData

Represents mvnhmm version 2.0 output file for chow-liu option. Have functions to get rainfall probabilities and amounts.

Author:
Lulin Song

Method Summary
 Edge[] getEdges(int stateNo)
          Get edge information.
 double[][] getRainfallAmount()
          Get rainfall amounts for each station and each state.
 double[][] getRainfallAmountForDeltaExponential()
          Get rainfall amounts for each station and each state for delta-exponential option.
 double[][] getRainfallAmountForDeltaGamma()
          Get rainfall amounts for each station and each state for delta-exponential option.
 double[][] getStationStatesProbabilites()
          Get rainfall probabilites information.
 boolean isChowLiu()
          Check if it is chow-liu data.
 boolean isValid()
          Check validity.
 void saveCLTreeData(java.lang.String fileName)
          Save data as tabular format.
 
Methods inherited from class OutputData
getImportantText, getRainfallAmountDeltaExponential, getRainfallAmountDeltaGamma, saveRainfallAmountData, saveRainfallProbData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStationStatesProbabilites

public double[][] getStationStatesProbabilites()
Get rainfall probabilites information.

Overrides:
getStationStatesProbabilites in class OutputData
Returns:
two dimension array that each row represents one station's probabilities for different states.

getRainfallAmount

public double[][] getRainfallAmount()
Get rainfall amounts for each station and each state.

Overrides:
getRainfallAmount in class OutputData
Returns:
two dimension double array that each row represents one station's rainfall amount for different states.

getRainfallAmountForDeltaExponential

public double[][] getRainfallAmountForDeltaExponential()
Get rainfall amounts for each station and each state for delta-exponential option.

Returns:
two dimension double array that each row represents one station's rainfall amount for different states.

getRainfallAmountForDeltaGamma

public double[][] getRainfallAmountForDeltaGamma()
Get rainfall amounts for each station and each state for delta-exponential option.

Returns:
two dimension double array that each row represents one station's rainfall amount for different states.

getEdges

public Edge[] getEdges(int stateNo)
Get edge information.

Parameters:
stateNo - number of state
Returns:
an array of Edge object

isValid

public boolean isValid()
Check validity.

Overrides:
isValid in class OutputData
Returns:
true if there are data, otherwise false.

isChowLiu

public boolean isChowLiu()
Check if it is chow-liu data.

Overrides:
isChowLiu in class OutputData
Returns:
true if it chow-liu output, otherwise false.

saveCLTreeData

public void saveCLTreeData(java.lang.String fileName)
Save data as tabular format.

Parameters:
fileName - file name with full path