Validate input data before creating a measurement.