1function [infGen, eventFilt, ev] = getGenerator(self, options)
2% [INFGEN, EVENTFILT] = GETGENERATOR()
4% [infGen, eventFilt] = getGenerator(self)
5% returns the infinitesimal generator of the CTMC and the
6% associated filtration
for each event
8if nargin>1 && islogical(options)
9 line_warning(mfilename,
'getGenerator(boolean) is now deprecated - remove the boolean argument.\n');
10 options = self.getOptions;
12 options = self.getOptions;
18% Note: hide_immediate now selectively preserves Cache immediate transitions
19% in solver_ctmc.m, so we no longer need to disable it entirely
for Cache
nodes
21if isempty(self.result) || ~isfield(self.result,
'infGen')
22 %line_warning(mfilename,
'The model has not been cached. Running SolverCTMC state space generator.');
23 [InfGen,StateSpace,StateSpaceAggr,EventFiltration,~,~,sn] = solver_ctmc(sn, options);
24 self.result.infGen = InfGen;
25 self.result.space = StateSpace;
26 self.result.spaceAggr = StateSpaceAggr;
27 self.result.nodeSpace = sn.space;
28 self.result.eventFilt = EventFiltration;
30infGen = self.result.infGen;
31eventFilt = self.result.eventFilt;