protected ContinuousStdDevMonitor(ReadOnlyObservableCollection <Tinput> input, Expression <Func <Tinput, Tfunc> > devValueSelector) : base(input, ExpressionPropertyAnalyzer.GetReferencedPropertyNames(devValueSelector)[typeof(Tinput)], false) { _selector = devValueSelector.Compile(); ReAggregate(); }
protected ContinuousAverageMonitor(ReadOnlyObservableCollection <Tinput> input, Expression <Func <Tinput, Tfunc> > averageFunc) : base(input, ExpressionPropertyAnalyzer.GetReferencedPropertyNames(averageFunc)[typeof(Tinput)], false) { _averageFunc = averageFunc.Compile(); ReAggregate(); }
protected ContinuousMaxMonitor(ReadOnlyObservableCollection <Tinput> input, Expression <Func <Tinput, Toutput> > maxFunc) : base(input, ExpressionPropertyAnalyzer.GetReferencedPropertyNames(maxFunc)[typeof(Tinput)], false) { _maxFunc = maxFunc.Compile(); ReAggregate(); }
protected ContinuousSumMonitor(ObservableCollection <Tinput> input, Expression <Func <Tinput, Toutput> > sumFunc) : base(input, ExpressionPropertyAnalyzer.GetReferencedPropertyNames(sumFunc)[typeof(Tinput)], false) { _sumFunc = sumFunc.Compile(); ReAggregate(); }
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(); }