1classdef Immediate < Distribution
2 % A distribution with probability mass entirely at zero
4 % Copyright (c) 2012-2026, Imperial College London
9 function self = Immediate()
12 self@Distribution('Immediate', 0,[0,0]);
13 self.immediate = true;
14 self.obj = jline.lang.processes.Immediate();
19 function
bool = isDisabled(self)
25 function X = sample(self, n)
28 if nargin<2 %~exist('n','var'),
34 function rate = getRate(self)
35 %global GlobalConstants.Immediate
36 rate = GlobalConstants.Immediate;
39 function ex = getMean(self)
42 % Get distribution mean
46 function SCV = getSCV(self)
49 % Get distribution squared coefficient of variation (SCV = variance / mean^2)
55 function mu = getMu(self)
57 %global GlobalConstants.Immediate
58 % Return total outgoing rate from each state
59 mu = GlobalConstants.Immediate;
62 function phi = getPhi(self)
65 % Return the probability that a transition out of a state
is
70 function Ft = evalCDF(self,t)
71 % FT = EVALCDF(SELF,T)
73 % Evaluate the cumulative distribution function at t
79 function L = evalLST(self, s)
82 % Evaluate the Laplace-Stieltjes transform of the distribution function at t
87 function PH = getProcess(self)
88 PH = {[-GlobalConstants.Immediate] ,[GlobalConstants.Immediate]};
91 function
bool = isImmediate(self)
92 % BOOL = ISIMMEDIATE()
93 % Check
if the distribution
is equivalent to an Immediate
95 % Overrides Distribution.isImmediate(self)
102 function [singleton, javasingleton] = getInstance
103 persistent staticImmediate
104 if isempty(staticImmediate)
105 staticImmediate = Immediate();
107 singleton = staticImmediate;
108 javasingleton = staticImmediate.obj;