sigmoid函数
之前看了一篇文章,里面需要编辑一个公式
这个公式我在其他论文里也有见过。在用matlab实现这个公式时,我发现在matlab中,没有直接的sigmoid函数,而是通过设置sigmf函数的相关参数,得到sigmoid函数的效果:
以下内容摘自MATLAB的help文件。
sigmf
Sigmoidally shaped built-in membership function
Syntax
y = sigmf(x,[a
c])
Description
The sigmoidal function, sigmf(x,[a
c]), as given in the following equation by f(x,a,c) is a mapping on
a vector x, and depends on two parameters a and

c.

Depending on the sign of the parameter a, the
sigmoidal membership function is inherently open to the right or to
the left, and thus is appropriate for representing concepts such as
“very large” or “very negative.” More conventional-looking
membership functions can be built by taking either the product or
difference of two different sigmoidal membership functions. For
more information
seedsigmf and psigmf.
相对于上面提到的公式,sigmf函数中,a=1,c=0;
即sigmoid(x)=sifmf(x,[1,0])

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/156687.html