The function appears to map negative inputs to -1, zero to 0, and positive inputs to 1, except for an interval around 0 where it maps the input to 2.

