Add support for non-integer sample and target values.