1function ProbSysAggr = getProbSysAggr(self)
2% PROBSYSSTATEAGGR = GETPROBSYSSTATEAGGR()
4if GlobalConstants.DummyMode
9TranSysStateAggr = self.sampleSysAggr;
10TSS = cell2mat([TranSysStateAggr.t,TranSysStateAggr.state(:)']);
11TSS(:,1)=[TSS(1,1);diff(TSS(:,1))];
14nir = zeros(sn.nstateful,sn.nclasses);
16 ind = sn.statefulToNode(isf);
17 if size(state{isf},1) > 1
18 line_warning(mfilename,
'Some states at node %d will be ignored. Please assign the node with a specific state.\n', ind);
20 [~,nir(isf,:)] = State.toMarginal(sn, ind, state{isf}(1,:));
23rows = findrows(TSS(:,2:end), nir(:)');
25 ProbSysAggr = sum(TSS(rows,1))/sum(TSS(:,1));
27 line_warning(mfilename,
'The state was not seen during the simulation.\n');