Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
SysBiOThe
/
CRA-Matlab
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 52ac2cba
authored
2019-03-31 21:21:49 +0200
by
Chiara Antonini
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Upload new file
1 parent
67db01a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
CRA_Updated_Version/Classes/TimeBehavior.m
CRA_Updated_Version/Classes/TimeBehavior.m
0 → 100644
View file @
52ac2cb
%Concrete class representing the time behavior of a model variable. It
%stores the values of a variable curve, the values of the selected
%evaluation function and the method chosen for tail computation
classdef
TimeBehavior
<
handle
properties
time
%x-axis of time simulation
values
%y-axis of time simulation
currentEvalFunc
evalFuncValues
currentTailMethod
end
methods
function
obj
=
TimeBehavior
(
t
,
v
)
obj
.
time
=
t
;
obj
.
values
=
v
;
end
% function obj=set.currentEvalFunc(obj,func)
% obj.currentEvalFunc=func;
% end
%pattern Strategy for computing values of the evaluation function
function
EvalValues
=
computeEvalFunc
(
obj
)
EvalValues
=
obj
.
currentEvalFunc
.
compute_ef
(
obj
);
obj
.
evalFuncValues
=
EvalValues
;
end
%pattern Strategy
function
[
XiMax
,
XiMin
]
=
compute_tail
(
obj
,
perturbation
,
tail_size
)
[
XiMax
,
XiMin
]
=
obj
.
currentTailMethod
.
compute_tailspdf
(
obj
,
perturbation
,
tail_size
);
end
end
end
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment