A JavaScript Sigmoid Function


Here’s a simple sigmoid function showing a logistic curve written in javascript

function sigmoid(t) {
    return 1/(1+Math.pow(Math.E, -t));
}

One response to “A JavaScript Sigmoid Function”

Leave a Reply