GetScoreForCondition() 공개 메소드

public GetScoreForCondition ( int condition ) : double
condition int
리턴 double
예제 #1
0
 public int CompareTo(Trial other ,int condition)
 {
     double myScore = GetScoreForCondition(condition);
     double othersScore = other.GetScoreForCondition(condition);
     if (myScore < othersScore)
         return -1;
     if (myScore > othersScore)
         return 1;
     return 0;
 }
예제 #2
0
        public int CompareTo(Trial other, int condition)
        {
            double myScore     = GetScoreForCondition(condition);
            double othersScore = other.GetScoreForCondition(condition);

            if (myScore < othersScore)
            {
                return(-1);
            }
            if (myScore > othersScore)
            {
                return(1);
            }
            return(0);
        }