class_docstr: Main class for calculating GageRnR.
docstr: Calculate Degrees of freedom.
docstr_tok: ["Calculate","Degrees","of","freedom","."]
code: def calculate_dof(self):
      """Calculate Degrees of freedom."""
      oDoF = self.operators - 1
      pDoF = self.parts - 1
      opDoF = (self.parts - 1) * (self.operators - 1)
      eDof = self.parts * self.operators * (self.measurements - 1)
      totDof = self.parts * self.operators * self.measurements - 1
      return {
          Component.OPERATOR: oDoF,
          Component.PART: pDoF,
          Component.OPERATOR_BY_PART: opDoF,
          Component.MEASUREMENT: eDof,
          Component.TOTAL: totDof,
      }
  
imports: from enum import Enum
  import numpy
  import math
  import scipy.stats
label_desc: Use image node_id 3 for calling the GageRnR obj's underlying member method code with example usage: obj.calculate_dof() and returns: dict