public FilterResult Compare(Stats.BasicStats a, Stats.BasicStats b)
        {
            var failedFilters = _filters
                                .Select(filter => filter.Compare(a, b))
                                .Where(result => !result.Passed);

            return(failedFilters.Any() ? failedFilters.First() : new FilterResult(true, _name));
        }
Exemple #2
0
 public FilterResult Compare(Stats.BasicStats a, Stats.BasicStats b)
 {
     return(new FilterResult(_isWithinThresholdFunc(_getConvolutionResult(a).Difference(_getConvolutionResult(b))), _name));
 }