Safe Haskell | None |
---|---|
Language | Haskell2010 |
The distortion functions have slope 1 at zero, if they are differentiable at that point, at all. This ensures that signals with low amplitude are only slightly altered. Non-differentiable distortions try to have an overall slope of 1.
Documentation
oddChebyshev :: C a => C a => Int -> a -> a Source #
Odd Chebyshev polynomial
oddChebyshev n
is an appropriately scaled Chebyshev polynomial of order 2*n+1
.
The argument n
must be non-negative.
Graphics.Gnuplot.Simple.plotFuncs [Graphics.Gnuplot.Simple.YRange (-1,1)] (Graphics.Gnuplot.Simple.linearScale 1000 (-7,7::Double)) (List.map oddChebyshev [0..5])
powerSigned :: (C a, C a) => a -> a -> a Source #
Power function.
Roughly the map p x -> x**p
but retains the sign of x
.