implementing CalcInfluenceSample