Transform stream factory to calculate the difference between successive streamed data values.