Logistic Function Transform of vector values
显示 更早的评论
I need to transform the elements of a vector by a logistic function into a vector with elements with values between 0 and 1. I have tried:
S1=(1/(1 + exp(1).^(-1*Stemp)))
S1 and Stemp are vectors containing the same elements.
But get the error message:
Error in Fuzzylogic_cognitive_map (line 13) S1=(1/(1 + exp(1).^(-1*Stemp)))
1 个评论
emjey
2018-8-16
or simply (with Grzegorz correction) S1=(1./(1 + exp(-Stemp)))
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!