コード例 #1
0
        public override Evaluation GetEvaluation(double correctValue)
        {
            var allowedDeviation = correctValue / 100;
            var result           = Readings.Any(x => Math.Abs(x.Value - correctValue) > allowedDeviation) ? "discard" : "keep";

            return(new Evaluation(Name, result));
        }
コード例 #2
0
ファイル: TaskProcess.cs プロジェクト: caioaletroca/HappiNESs
 /// <summary>
 /// Check if there is any true value in the <see cref="Readings"/> list
 /// </summary>
 /// <returns></returns>
 public bool IsReadings()
 {
     return Readings.Any(x => x);
 }