function n_cf = tst_pdf(xi, lower_lim, varargin) d_pdf = @(x) tripdf(x, varargin{:}); d_cdf = @(x) tricdf(x, varargin{:}); n_cf = norm(integral(d_pdf, lower_lim, xi) - d_cdf(xi)); end