out.writeProperty(HiddenMarkovModel.TAG_PI,net.getPi());
out.writeProperty(HiddenMarkovModel.TAG_TRANSITION,new Matrix(net.getTransitionProbability()));
for( int i=0; i<net.getStateCount();i++) {
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());