Пример #1
0
            public ConditionFilter(ELogicOperator op, bool negate, ObsFilter filter, bool filterOp)
                : base(op, negate)
            {
                if (filter == null)
                {
                    throw new ArgumentNullException(nameof(filter));
                }

                this.Filter   = filter;
                this.FilterOp = filterOp;
            }
Пример #2
0
 internal IntensityMatrix Subset(PeakFilter peakFilter, ObsFilter columnFilter, ESubsetFlags flags)
 {
     return(this.Subset(peakFilter != null ? (Predicate <Peak>)peakFilter.Test : null,
                        columnFilter != null ? (Predicate <ObservationInfo>)columnFilter.Test : null,
                        flags));
 }