コード例 #1
0
 protected ContinuousStdDevMonitor(ReadOnlyObservableCollection <Tinput> input,
                                   Expression <Func <Tinput, Tfunc> > devValueSelector)
     : base(input,
            ExpressionPropertyAnalyzer.GetReferencedPropertyNames(devValueSelector)[typeof(Tinput)],
            false)
 {
     _selector = devValueSelector.Compile();
     ReAggregate();
 }
コード例 #2
0
 protected ContinuousAverageMonitor(ReadOnlyObservableCollection <Tinput> input,
                                    Expression <Func <Tinput, Tfunc> > averageFunc)
     : base(input,
            ExpressionPropertyAnalyzer.GetReferencedPropertyNames(averageFunc)[typeof(Tinput)],
            false)
 {
     _averageFunc = averageFunc.Compile();
     ReAggregate();
 }
コード例 #3
0
 protected ContinuousMaxMonitor(ReadOnlyObservableCollection <Tinput> input,
                                Expression <Func <Tinput, Toutput> > maxFunc)
     : base(input,
            ExpressionPropertyAnalyzer.GetReferencedPropertyNames(maxFunc)[typeof(Tinput)],
            false)
 {
     _maxFunc = maxFunc.Compile();
     ReAggregate();
 }
コード例 #4
0
 protected ContinuousSumMonitor(ObservableCollection <Tinput> input,
                                Expression <Func <Tinput, Toutput> > sumFunc)
     : base(input,
            ExpressionPropertyAnalyzer.GetReferencedPropertyNames(sumFunc)[typeof(Tinput)],
            false)
 {
     _sumFunc = sumFunc.Compile();
     ReAggregate();
 }
コード例 #5
0
 public ContinuousVwapMonitor(ObservableCollection <T> input,
                              Expression <Func <T, double> > priceSelector,
                              Expression <Func <T, int> > quantitySelector)
     : base(input,
            ExpressionPropertyAnalyzer.GetReferencedPropertyNames(priceSelector)[typeof(T)].CombineWith(
                ExpressionPropertyAnalyzer.GetReferencedPropertyNames(quantitySelector)[typeof(T)]),
            false)
 {
     _priceSelector = priceSelector.Compile();
     _qtySelector   = quantitySelector.Compile();
     ReAggregate();
 }