code: def getFuncValue(self, dist, a, b, params, samples, z_prior):
      l_1, l_2 = params
  
      exp = np.mean(
          np.abs(
              self.getValueForX(dist, a, b, params, z_prior, samples)
          )
      )
      result = exp - b * l_1 - b * l_2
      if l_1 > 0:
          result += (b - a) * l_1
      if l_2 > 0:
          result += (b - a) * l_2
  
      return result
  
file_path: AIF360/aif360/algorithms/inprocessing/celisMeta/StatisticalRate.py
imports: import numpy
  from aif360.algorithms.inprocessing.celisMeta.General import General
label_desc: Use image node_id 3 for calling the StatisticalRate obj's underlying member method code with example usage: obj.getFuncValue(dist, a, b, params, samples, z_prior) and returns: result