I've been trying to make this function work to no avail. Could anyone potentially shed some light?
It is a Sigmoid with some applied boundaries/transormations. Here's the link to the function in desmos. That is working perfectly. It looks like this:
And that's the formula:
But when I tried to 'translate' that into my Javascript code, I can't get it to perform as intended. Here's what I tried:
y = m*((0.5/(1/(1+(Math.pow(Math.E,((-1)*d))))-0.5))*((1/((1+(Math.pow(Math.E, (((-1)*d)*(1/h)*x-1))))))-0.5))+0.5;
The function is not being bounded as expected and it should be passing through 0,0 like in the Desmos example... but it isn't! I know there are probably too many brackets in there and the solution will be glaringly obvious to someone with better understanding of this so, could you help me please?
Thank you!!