In graphics, we often need a way to filter or smoothen out a signal. Below is a collection of some functions that can be used to do that along with their respective plots. The input signal x is assumed to be in the [-1, 1] value range:

\(1.0 - |x|^a\)

a = 0.501
a = 1.002
a = 2.503
a = 5.004
a = 25.005

\(cos(\frac{\pi * x}{2.0})^a\)

a = 0.506
a = 1.007
a = 2.508
a = 5.009
a = 25.010

\(1.0 - |sin(\frac{\pi * x}{2.0})|^a\)

a = 0.511
a = 1.012
a = 2.513
a = 5.014
a = 25.015

\(min(cos(\frac{\pi * x}{2.0}), 1.0 - |x|)^a\)

a = 0.516
a = 1.017
a = 2.518
a = 5.019
a = 25.020

\(1.0 - max(0.0, |x| * 2.0 - 1.0)^a\)

a = 0.521
a = 1.022
a = 2.523
a = 5.024
a = 25.025