1

I want to create (approximately) the double sigmoid in the shown figure as a function in terms of the parameters X,Y,Z, a,b,c and d. Any idea? Thanks.

enter image description here

2
  • This question should be migrated to the Mathematics Stack Exchange.
    – Lynn
    Jul 20, 2015 at 12:54
  • solution: a=5; b=30; c=60; d=100; x=[a:0.1:d]; X=8; Y=15; Z=70; n1=15; n2=15; y = X + Y ./(1 + exp(-n1*(x-b)))+ Z./(1 + exp(-n2*(x-c))); plot(x,y)t Jul 20, 2015 at 14:37

1 Answer 1

2

This question seems to have gone ignored, so try something like this:

k = 1   # adjust this for "sharpness"

s(x) = (tanh(k * x) + 1) / 2

f(x) = X + (Y-X) * s(x-b) + (Z-Y) * s(x-c)

Here's an example plot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.