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);
版权声明:本文博主原创文章,博客,未经同意不得转载。