예제 #1
0
        public static double FromReactionsArray(double[] reactionTimes)
        {
            if (null == reactionTimes || 0 == reactionTimes.Length)
            {
                return(0);
            }
            double ave = 0;

            for (int i = 0; i < reactionTimes.Length; ++i)
            {
                ave += SvmrReliabilityMembershipFunc.ValueAt(reactionTimes[i]);
            }
            return(ave / (double)reactionTimes.Length);
        }
예제 #2
0
 public static double FromSingleReaction(double reactionTime)
 {
     return(SvmrReliabilityMembershipFunc.ValueAt(reactionTime));
 }