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)); }
/// <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); }