Text this: On a class of functions unifying the classes of Paatero, Robertson and others