otaf.tolerances package

Module contents

Tools for calculating defect standard deviations and implicit credal sets.

otaf.tolerances.sigma_delta_3D_plane(x, y, sw, sa, sb)[source]

Calculate defect standard deviation for a 3D plane feature.

Parameters:
  • x (float or np.ndarray) – X-coordinate or array of coordinates on the plane.

  • y (float or np.ndarray) – Y-coordinate or array of coordinates on the plane.

  • sw (float) – Standard deviation of the translational defect normal to the plane.

  • sa (float) – Standard deviation of the angular defect variation around the first axis.

  • sb (float) – Standard deviation of the angular defect variation around the second axis.

Returns:

The calculated standard deviation. If x or y are arrays, the output shape matches their broadcasted shape.

Return type:

float or np.ndarray

otaf.tolerances.sigma_delta_circular_feature(theta, sr, su, sv)[source]

Calculate defect standard deviation for a circular feature.

Parameters:
  • theta (float or np.ndarray) – Angle or array of angles along the circular feature in radians.

  • sr (float) – Standard deviation of the radial defect.

  • su (float) – Standard deviation of the U-axis translational defect.

  • sv (float) – Standard deviation of the V-axis translational defect.

Returns:

The calculated standard deviation. If theta is an array, the output shape matches the shape of theta.

Return type:

float or np.ndarray

otaf.tolerances.sigma_delta_cylindrical_feature(z, theta, sr, su, salpha, sv, sbeta)[source]

Calculate defect standard deviation for a cylindrical feature.

Parameters:
  • z (float or np.ndarray) – Axial position or array of positions along the cylinder height.

  • theta (float or np.ndarray) – Angular position or array of positions along the circumference in radians.

  • sr (float) – Standard deviation of the radial defect.

  • su (float) – Standard deviation of the axial translation defect.

  • salpha (float) – Standard deviation of the angular variation defect around the alpha axis.

  • sv (float) – Standard deviation of the transverse translation defect.

  • sbeta (float) – Standard deviation of the angular variation defect around the beta axis.

Returns:

The calculated standard deviation. If z or theta are arrays, the output shape matches their broadcasted shape.

Return type:

float or np.ndarray