1function CDc = getCdfPT(self)
4% Copyright (c) 2012-2026, Imperial College London
9R = self.getAvgRespTHandles;
12%if ~exist('withRefStat','var')
13withRefStat = false(1,sn.nclasses);
14%elseif numel(withRefStat) == 1
16% withRefStat = false(1,sn.nclasses);
17% withRefStat(:) = val;
19% ptSpec = struct(); % passage time specification
20% ptSpec.starts = false(sn.nnodes,sn.nclasses,sn.nnodes,sn.nclasses);
21% ptSpec.completes = false(sn.nnodes,sn.nclasses,sn.nnodes,sn.nclasses);
24% % starts when arriving to ref
25% ptSpec.starts(:,:,sn.refstat(r),r) = true;
26% else % ref station excluded
27% % starts when leaving ref
28% ptSpec.starts(sn.refstat(r),r,:,:) = true;
30% % completes when arriving to ref
31% if R{sn.refstat(r),r}.class.completes
32% %
class switch to r
is right after departure from station i
33% ptSpec.completes(:,:,sn.refstat(r),r) = true;
36% options = self.getOptions;
37% options.psgtime = ptSpec;
38completes =
false(sn.nnodes,sn.nclasses);
41 if R{i,r}.class.completes
42 completes(i,r) =
true;
46CDc = solver_fluid_RT(sn, self.result.solverSpecific.odeStateVec, options, completes);
48self.setDistribResults(CDc, runtime);