-
Notifications
You must be signed in to change notification settings - Fork 0
/
KernelWrapper.m
55 lines (49 loc) · 1.2 KB
/
KernelWrapper.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
clear all
ReadEstimates
Preprocessing
%%
ConstructPDFs
ConstructHistogram
ConstructPDFgrowth
%% restore defaults
distpos = 'weibull'; %normal gamma lognormal gumbel weibull=default
distneg = 'gumbel'; %normal gumbel=default
Silverman = false;
JohnsonSU = false;
nosplit = false;
NFilter = NFilterSave;
%TotalWeight = TotalWeightSave;
ConstructPDF
%%
figure
plot(SCCgrid(301:2101),JointPDF(301:2101,1))
legend('Test before bootstrap');
xlabel('dollar per tonne of carbon')
ylabel('Probability density')
%%
Decompose
KStests
Characteristics
%% skip this step
distpos = 'weibull'; %normal gamma lognormal gumbel weibull=default
distneg = 'gumbel'; %normal gumbel=default
Silverman = false;
JohnsonSU = false;
nosplit = false;
NFilter = NFilterSave;
TotalWeight = Censor.*AuthorWeight;
ConstructPDF
figure
plot(SCCgrid(301:2101),JointPDF(301:2101,1))
legend('Test before bootstrap');
xlabel('dollar per tonne of carbon')
ylabel('Probability density')
DecomposeShort
%%
distpos = 'weibull'; %normal gamma lognormal gumbel weibull=default
distneg = 'gumbel'; %normal gumbel=default
Silverman = false;
nosplit = false;
NFilter = 1;
TotalWeight = TotalWeightSave;
bootstrap