Custom Transfer Function
Please follow the other examples. This uses math.js and thus any function from that library can be used here.