PostSimulationAnalysis.Trial.CompareTo C# (CSharp) Method

CompareTo() public method

public CompareTo ( Trial other, int condition ) : int
other Trial
condition int
return int
        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;
        }