sigmoid function value for parameter a and b

3 次查看(过去 30 天)
Please can someone help me with sigmoid function. Please can anyone tell me what values i should give for a and b so that i get for
y0=sigmf(0,[a b]) % y0 value less than 0.5
and for
y1=sigmf(1,[a b]) % y1 value greater than 0.5

采纳的回答

Jan
Jan 2013-8-21
编辑:Jan 2013-8-21
According to my calculations you have to pick 0<b<1 and a>0.
E.g. b=1/2 and a=1
  2 个评论
Jan
Jan 2013-8-21
Laurent was obviously a bit faster than me doing the math, but it's nice to have a result double checked :)

请先登录,再进行评论。

更多回答(1 个)

Laurent
Laurent 2013-8-21
编辑:Laurent 2013-8-21
Well, if the only requirement is that y0 < 0.5 for x=0 and y1 > 0.5 for x=1, then for 0 < b < 1 and a > 0 it should work.
  1 个评论
Elysi Cochin
Elysi Cochin 2013-8-21
sir for x = 0, it should be a value less than 0.5 and for x = 1, it should be a value greater than 0.5
such a value i need for a and b

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by