core: add a TransferFunction class and move transfer function functions in there
This way it's more obvious where to find them, and the class can be extended with more functionality later, like transfer functions with parameters
This way it's more obvious where to find them, and the class can be extended with more functionality later, like transfer functions with parameters