def _avg(self, vec):    
    size = 0.0
    for i in vec[0]:
      if i != 0: size += 1
    if size == 0:
      return 0
    return vec.sum()/size
#end PearsonDistance
Adds texture filter lookup node to the selected file texture nodes for
dataset/ETHPy150Open jasonwbw/DensityPeakCluster/distance/distance.py/PearsonDistance._avg--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/toolbox.py/Render.use_mib_texture_filter_lookup