calculate linearity uncertainty select x values