The sample must contain at least one element.