1function probSysStateAggr = getProbSysAggr(self)
2% PROBSYSSTATEAGGR = GETPROBSYSSTATEAGGR()
3if GlobalConstants.DummyMode
4 probSysStateAggr = NaN;
8TranSysStateAggr = self.sampleSysAggr;
9TSS = cell2mat([TranSysStateAggr.t,TranSysStateAggr.state(:)']);
10TSS(:,1)=[diff(TSS(:,1));0];
12nir = zeros(sn.nstateful,sn.nclasses);
14 ind = sn.statefulToNode(isf);
15 [~,nir(isf,:)] = State.toMarginal(sn, ind, state{isf});
18rows = findrows(TSS(:,2:end), nir(:)');
20 probSysStateAggr = sum(TSS(rows,1))/sum(TSS(:,1));
22 line_warning(mfilename,
'The state was not seen during the simulation.\n');