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); }
public static double FromSingleReaction(double reactionTime) { return(SvmrReliabilityMembershipFunc.ValueAt(reactionTime)); }