-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtsEvaPlotReturnLevelsGPDFromAnalysisObj.m
More file actions
22 lines (18 loc) · 1.17 KB
/
tsEvaPlotReturnLevelsGPDFromAnalysisObj.m
File metadata and controls
22 lines (18 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function [phandles, returnPeriods, returnLevels, retrunLevelsErrs] = tsEvaPlotReturnLevelsGPDFromAnalysisObj( nonStationaryEvaParams, timeIndex, varargin )
% nonStationaryEvaParams, stationaryTransformData are as these returned by function nonStationaryEvaJRCApproach
% timeIndex is the index at which the time varying analysis should be
% estimated.
epsilon = nonStationaryEvaParams(2).parameters.epsilon;
sigma = nonStationaryEvaParams(2).parameters.sigma(timeIndex);
threshold = nonStationaryEvaParams(2).parameters.threshold(timeIndex);
thStart = nonStationaryEvaParams(2).parameters.timeHorizonStart;
thEnd = nonStationaryEvaParams(2).parameters.timeHorizonEnd;
timeHorizonInYears = (thEnd - thStart)/365.2425;
nPeaks = nonStationaryEvaParams(2).parameters.nPeaks;
epsilonStdErr = nonStationaryEvaParams(2).paramErr.epsilonErr;
sigmaStdErr = nonStationaryEvaParams(2).paramErr.sigmaErr(timeIndex);
thresholdStdErr = nonStationaryEvaParams(2).paramErr.thresholdErr(timeIndex);
[phandles, returnPeriods, returnLevels, retrunLevelsErrs] = tsEvaPlotReturnLevelsGPD...
(epsilon, sigma, threshold, epsilonStdErr, sigmaStdErr, thresholdStdErr,...
nPeaks, timeHorizonInYears, varargin{:});
end