?? dsigmf.m
字號:
function y = dsigmf(x, params)
%DSIGMF Membership function composed of the difference between two sigmoidal
% membership functions.
% Synopsis
% y = dsigmf(x,[a1 c1 a2 c2])
% Description
% The sigmoidal membership function used here depends on the two parameters a
% and c and is given by f(x;a,c) = 1/(1 + exp(-a(x-c))).
% The membership function dsigmf depends on four parameters, a1, c1, a2, and
% c2, and is the difference between two of these sigmoidal functions:
% f1(x; a1, c1) - f2(x; a2, c2)
% The parameters are listed in the order: [a1 c1 a2 c2].
% Example
% x=0:0.1:10;
% y=dsigmf(x,[5 2 5 7]);
% plot(x,y)
% xlabel('dsigmf, P=[5 2 5 7]')
%
% See also EVALMF, GAUSS2MF, GAUSSMF, GBELLMF, MF2MF, PIMF, PSIGMF, SIGMF,
% SMF, TRAPMF, TRIMF, ZMF.
% Roger Jang, 10-5-93.
% Copyright 1994-2002 The MathWorks, Inc.
% $Revision: 1.20 $ $Date: 2002/04/14 22:20:32 $
if nargin ~= 2
error('Two arguments are required by diff. sigmoidal MF.');
elseif length(params) < 4
error('The diff. sigmoidal MF needs at least four parameters.');
end
y = abs(sigmf(x, params(1:2)) - sigmf(x, params(3:4)));
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -