Exemplo n.º 1
0
 /// <summary>
 /// Constructs a new Measure
 /// </summary>
 /// <param name="name"></param>
 /// <param name="filter"></param>
 /// <param name="measure"></param>
 public FilteredMeasure(string name, Func <TFact, IDimensionResult <TFact>, bool> filter, Measure <TFact, TIntermediate> measure)
     : base(name, filter)
 {
     Measure = measure;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a new Measure
 /// </summary>
 /// <param name="filter"></param>
 /// <param name="measure"></param>
 public FilteredMeasure(Func <TFact, IDimensionResult <TFact>, bool> filter, Measure <TFact, TIntermediate> measure)
     : this(measure?.Name, filter, measure)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a new Measure
 /// </summary>
 /// <param name="name"></param>
 /// <param name="filter"></param>
 /// <param name="measure"></param>
 public FilteredMeasure(string name, Func <TFact, bool> filter, Measure <TFact, TIntermediate> measure)
     : this(name, (fact, entry) => filter(fact), measure)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs a new Measure
 /// </summary>
 /// <param name="filter"></param>
 /// <param name="measure"></param>
 public FilteredMeasure(Func <TFact, bool> filter, Measure <TFact, TIntermediate> measure)
     : this(measure?.Name ?? throw new ArgumentNullException(nameof(measure)),
            (fact, entry) => filter(fact), measure)
 {
 }