S性能 Sigmoid Function or Logistic Function


S性能 Sigmoid Function or Logistic Function

octave码

x = -10:0.1:10;
y = zeros(length(x), 1);

for i = 1:length(x)
	y(i) = 1 / (1 + exp(-x(i)));

end

figure;
plot(x, y, '-b', 'LineWidth', 2);


版权声明:本文博主原创文章,博客,未经同意不得转载。

posted @ 2015-09-08 15:15  lcchuguo  阅读(179)  评论(0编辑  收藏  举报