-
Notifications
You must be signed in to change notification settings - Fork 0
/
KLPC_SURROGATE.m
39 lines (30 loc) · 1.21 KB
/
KLPC_SURROGATE.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
classdef KLPC_SURROGATE < TD_SURROGATE
%PC_SURROGATE Summary of this class goes here
% Detailed explanation goes here
properties
eigenvectors
eigenvalues
modes
coefficients
basis_index
end
methods
function obj = KLPC_SURROGATE(params, N_KL, N_ord, w)
%PC_SURROGATE Construct an instance of this class
% Detailed explanation goes here
obj@TD_SURROGATE(params);
[obj.eigenvalues, obj.eigenvectors] = KL_methods.eigen_decomp(params.fc, N_KL, w);
obj.modes = KL_methods.generate_KL_modes(params.fc, obj.eigenvectors);
[obj.coefficients, obj.basis_index, ~] = KL_methods.PCE_KL_modes(obj.modes, params.U, N_ord);
end
function SI = calculate_sensitivity_indices(obj, type)
SI = KL_methods.calculate_sensitivity_indices(obj.basis_index, obj.coefficients, type);
end
function plot_eigpairs(obj)
KL_methods.plot_eigpairs(obj.eigenvalues, obj.eigenvectors, true, true)
end
function plot_variance(obj)
KL_methods.plot_variance(obj.eigenvalues, obj.eigenvectors, obj.fc, true)
end
end
end