Sigmoid – a post about an algebraic function! I’m having too much fun!

A sigmoid function is useful for lots of graphics applications, it’s yer classic ease-out, ease-in curve for animation, and its a film-look response curve for colour. Here’s one I’m using in a script I’m working on, it has variable power and for both x and y 0 <= x <= 1

sigmoidThe function is defined for y, given x and p:

y = g(1-x) / (g(x) + g(1-x))

where g(x) = (1/x)p

p is any positive number > 0 (it flatlines at p=0)

Here is it on – a useful graphing calculator page.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.