out.addSubSection("DISTRIBUTION-"+i);
StateDistribution sd = net.getStateDistribution(i);
out.writeProperty(HiddenMarkovModel.TAG_DIST_TYPE, sd.getClass().getSimpleName());
if( sd instanceof ContinousDistribution ) {
ContinousDistribution cDist = (ContinousDistribution)sd;
out.writeProperty(HiddenMarkovModel.TAG_MEAN, cDist.getMean());
out.writeProperty(HiddenMarkovModel.TAG_COVARIANCE, cDist.getCovariance());
} else if( sd instanceof DiscreteDistribution ) {
DiscreteDistribution dDist = (DiscreteDistribution)sd;
out.writeProperty(HiddenMarkovModel.TAG_PROBABILITIES, new Matrix(dDist.getProbabilities()));
}