⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dssensitivity.m

📁 这是一个国外的DST的Matlab工具箱
💻 M
字号:
function [euncraw,euncnorm, euncquot]=dssensitivity(x, parnums, fhandle, uncfn, mcIT, pinch_samples, pinch_type)
%=========================================================================   
% dssensitivity
%=========================================================================   
% [euncraw,euncnorm, euncquot]=dssensitivity(x, parnums, fhandle, uncfn, mcIT, pinch_samples, pinch_type) 
% 
% Sensitivity measure routine based on Monte-Carlo sampling. Performs a
% sensitivity analysis on the function f(x) using an uncertainty measure "uncfun". Sensitivity is
% measured by reducing the input variable uncertainty and detecting the
% change in the overall uncertainty.
% Input uncertainty is reduced by iterative, random "pinching", replacing an input x_i by a
% random point/interval/distribution enclosed by x_i.
%
% Input:
% x: Input vector of Demster-Shafer structures
% parnums: Indices of elements in x that are the objective of the
% sensitivity analysis
% fhandle: Function handle of f(x)
% uncfun: Uncertainty measure (i. e. dsaggunc, dsavgwidth, ...)
% mcIT: Number of MC samples per pinch_sample input
% pinch_samples: Number of pinch_samples
% pinch_type (optional): Type of pinching, pinch_type='point' for sampling points in
% x_i (default), pinch_type='interval' for sampling intervals annd
% pinch_type='distribution' for distributions.
%
% Output:
% euncraw: Difference of uncertainty in f(x) between pinched and unpinched
% input x_i
% euncnorm: Difference of uncertainty in f(x) between pinched and unpinched
% euncquot: Quotient of uncertainty in f(x) between pinched and unpinched
% input x_i
%
% Usage - Determining the sensitivity of the average width and of the
% dissonance measure:
% myfn=inline('sqrt(x(:,1).^2.+abs(x(:,2)))','x')
% mu=dsstruct([2,3,1])
% dss1=dsodf('norminv',200,mu)
% dss2=dsodf('norminv',500,mu)
% [a,b,c]=dssensitivity([dss1,dss2],[1,2],myfn,'dsavgwidth',200,100);
% bar(100*(1-c));
% xlabel('Input');
% ylabel('S in % - dsavgwidth');
% [a2,b2,c2]=dssensitivity([dss1,dss2],[1,2],myfn,'dsdissonance',200,100,'interval');
% figure
% bar(100*(1-c2));
% xlabel('Input');
% ylabel('S in % - dsdissonance');
%=========================================================================
% Reference : Ferson S, Tucker WT: Sensitivity in Risk Analyses with
% Uncertain Numbers. Sandia National Laboratories, Albuquerque (2006).
% Link      : http://citeseer.ist.psu.edu/660030.html
% Reference : Limbourg P, Savic R, Petersen J, Kochs H-D: Fault Tree
% Analysis in an Early Design Stage using the Dempster-Shafer Theory of
% Evidence. In: Terje Aven JEV (ed) European Conference on Safety and
% Reliability 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -