If you wish to construct a waveshaper based on incoming data, then you will create a table, and proceed using linear interpolation (as shown in previous slides).
The problem with this approach is that you can't ensure a bandlimited spectrum withouth aliasing.
It is also possible to fit a polynomial to the data (there are many ways of doing this, the details go beyond the scope of this class).
You may like to take advantable of Matlab's polyfit to accomplish this task.