[WIP] filter functions for interpolation

Add some generic filter functions for interpolation, and possible allow arbitrary passing of functions