https://github.com/reproducibilitystamp/simkernel
Tip revision: 3f88dadbad5a30b0fb9a55f25db8202ae8d6c3f8 authored by chen on 06 June 2016, 16:41:26 UTC
update readme
update readme
Tip revision: 3f88dad
fig4.m
%% load contour w from file, and generate contour f as a cubic spline
% w and f do not have to be splines, but they need to be continuse and differntiable
datafile = 'fig4_data'; % fig5_data
load(datafile);
fR2C = @(x) complex(x(:,1), x(:,2));
fC2R = @(x) [real(x) imag(x)];
fGenPP = @(c) cscvn(fC2R(c([1:end 1]))');
fEvalCurve = @(pp) fR2C( ppval(pp, linspace(pp.breaks(1), pp.breaks(end), numel(w)))' );
f = fEvalCurve(fGenPP(cf1));
invGammaDemo(w, f, nv0)