Class OutputData

java.lang.Object
  extended by OutputData
Direct Known Subclasses:
ChowLiuOutput, OutputDataBernoulli, OutputDataV2, ViterbiOutputData

public class OutputData
extends java.lang.Object

Represents output file. Created using version 1.0 parameter. Have functions to get rainfall probabilities and amounts.

Author:
Lulin Song

Method Summary
 java.lang.String[] getImportantText()
          Get important text.
 double[][] getRainfallAmount()
          Get rainfall amounts for each station and each state.
 double[][] getRainfallAmountDeltaExponential()
          Get rainfall amounts for each station and each state.
 double[][] getRainfallAmountDeltaGamma()
          Get rainfall amounts for each station and each state.
 double[][] getStationStatesProbabilites()
          Get rainfall probabilites information.
 boolean isChowLiu()
          Check if it is chow-liu data.
 boolean isValid()
          Check validity.
 void saveRainfallAmountData(java.lang.String fileName)
          Save data as tabular format.
 void saveRainfallProbData(java.lang.String fileName)
          Save data as tabular format.
 
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.

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.

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

getRainfallAmountDeltaExponential

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

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

getRainfallAmountDeltaGamma

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

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

getImportantText

public java.lang.String[] getImportantText()
Get important text.


isValid

public boolean isValid()
Check validity.

Returns:
true if there are data, otherwise false.

isChowLiu

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

Returns:
true if it chow-liu output, otherwise false. Default to false.

saveRainfallProbData

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

Parameters:
fileName - file name with full path

saveRainfallAmountData

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

Parameters:
fileName - file name with full path