public static double computeNewPriority_sigmoidFractionOfFriends(double priority,int sharedFriends,int myFriends){
  double trustMultiplier=sigmoid(sharedFriends / (double)myFriends,0.3,13.0);
  trustMultiplier=trustMultiplier + getGaussian(MEAN,VAR);
  trustMultiplier=Math.min(trustMultiplier,1);
  trustMultiplier=Math.max(trustMultiplier,0);
  if (sharedFriends == 0) {
    trustMultiplier=EPSILON_TRUST;
  }
  return priority * trustMultiplier;
}

public static double computeNewPriority_sigmoidFractionOfFriends ( double priority , int sharedFriends , int myFriends ) { double trustMultiplier = sigmoid ( sharedFriends / ( double ) myFriends , 0.3 , 13.0 ) ; trustMultiplier = trustMultiplier + getGaussian ( MEAN , VAR ) ; trustMultiplier = Math . min ( trustMultiplier , 1 ) ; trustMultiplier = Math . max ( trustMultiplier , 0 ) ; if ( sharedFriends == 0 ) { trustMultiplier = EPSILON_TRUST ; } return priority * trustMultiplier ; }
compute the priority score for a person normalized by his number of friends , and passed through a sigmoid function .
