A generalized logarithm parameterized by q that interpolates between different loss functions as q varies.