LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
Immediate.m
1classdef Immediate < Distribution
2 % A distribution with probability mass entirely at zero
3 %
4 % Copyright (c) 2012-2026, Imperial College London
5 % All rights reserved.
6
7 methods (Hidden)
8 %Constructor
9 function self = Immediate()
10 % SELF = IMMEDIATE()
11
12 self@Distribution('Immediate', 0,[0,0]);
13 self.immediate = true;
14 self.obj = jline.lang.processes.Immediate();
15 end
16 end
17
18 methods
19 function bool = isDisabled(self)
20 % BOOL = ISDISABLED()
21
22 bool = false;
23 end
24
25 function X = sample(self, n)
26 % X = SAMPLE(N)
27
28 if nargin<2 %~exist('n','var'),
29 n = 1;
30 end
31 X = zeros(n,1);
32 end
33
34 function rate = getRate(self)
35 %global GlobalConstants.Immediate
36 rate = GlobalConstants.Immediate;
37 end
38
39 function ex = getMean(self)
40 % EX = GETMEAN()
41
42 % Get distribution mean
43 ex = 0;
44 end
45
46 function SCV = getSCV(self)
47 % SCV = GETSCV()
48
49 % Get distribution squared coefficient of variation (SCV = variance / mean^2)
50
51
52 SCV = 0;
53 end
54
55 function mu = getMu(self)
56 % MU = GETMU()
57 %global GlobalConstants.Immediate
58 % Return total outgoing rate from each state
59 mu = GlobalConstants.Immediate;
60 end
61
62 function phi = getPhi(self)
63 % PHI = GETPHI()
64
65 % Return the probability that a transition out of a state is
66 % absorbing
67 phi = 1.0;
68 end
69
70 function Ft = evalCDF(self,t)
71 % FT = EVALCDF(SELF,T)
72
73 % Evaluate the cumulative distribution function at t
74 % AT T
75
76 Ft = 1;
77 end
78
79 function L = evalLST(self, s)
80 % L = EVALST(S)
81
82 % Evaluate the Laplace-Stieltjes transform of the distribution function at t
83
84 L = 1; % as in Det(0)
85 end
86
87 function PH = getProcess(self)
88 PH = {[-GlobalConstants.Immediate] ,[GlobalConstants.Immediate]};
89 end
90
91 function bool = isImmediate(self)
92 % BOOL = ISIMMEDIATE()
93 % Check if the distribution is equivalent to an Immediate
94 % distribution
95 % Overrides Distribution.isImmediate(self)
96 bool = true;
97 end
98
99 end
100
101 methods (Static)
102 function [singleton, javasingleton] = getInstance
103 persistent staticImmediate
104 if isempty(staticImmediate)
105 staticImmediate = Immediate();
106 end
107 singleton = staticImmediate;
108 javasingleton = staticImmediate.obj;
109 end
110 end
111end