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 129f0997
authored
2019-03-31 21:20:15 +0200
by
Chiara Antonini
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Upload new file
1 parent
eaa03183
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
CRA_Updated_Version/Classes/LatinHypercube.m
CRA_Updated_Version/Classes/LatinHypercube.m
0 → 100644
View file @
129f099
%Class representing a latin hypercube generated through the function
%lhsdesign. The object LatinHypercube has the following properties:
% -Nsample is the number of samples of the hypercube
% -LBpi and UBpi are, respectively, the lower and upper boundaries of the
% interval in which the hypercube is centered
classdef
LatinHypercube
properties
LBpi
UBpi
Nsample
end
methods
function
obj
=
LatinHypercube
(
lb
,
ub
,
ns
)
obj
.
LBpi
=
lb
;
obj
.
UBpi
=
ub
;
obj
.
Nsample
=
ns
;
end
function
perturbation
=
generate_sample
(
obj
,
len_p
)
perturbation
=
obj
.
LBpi
+
(
obj
.
UBpi
-
obj
.
LBpi
)
.*
lhsdesign
(
obj
.
Nsample
,
len_p
);
end
end
end
\ No newline at end of file
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