示例#1
0
 public AstDerivativeOrIntegralWindowExpression(AstDerivativeOrIntegralWindowOperator @operator, AstExpression arg, WindowTimeUnit?unit, AstWindow window)
 {
     _operator = @operator;
     _arg      = Ensure.IsNotNull(arg, nameof(arg));
     _unit     = unit;
     _window   = window;
 }
示例#2
0
 public AstBinaryWindowExpression(AstBinaryWindowOperator @operator, AstExpression arg1, AstExpression arg2, AstWindow window)
 {
     _operator = @operator;
     _arg1     = Ensure.IsNotNull(arg1, nameof(arg1));
     _arg2     = Ensure.IsNotNull(arg2, nameof(arg2));
     _window   = window;
 }
        public AstNullaryWindowExpression Update(AstNullaryWindowOperator @operator, AstWindow window)
        {
            if (@operator == _operator && window == _window)
            {
                return(this);
            }

            return(new AstNullaryWindowExpression(@operator, window));
        }
        public AstExponentialMovingAverageWindowExpression Update(AstExpression arg, ExponentialMovingAverageWeighting weighting, AstWindow window)
        {
            if (arg == _arg && weighting == _weighting && window == _window)
            {
                return(this);
            }

            return(new AstExponentialMovingAverageWindowExpression(arg, weighting, window));
        }
 public AstExponentialMovingAverageWindowExpression(AstExpression arg, ExponentialMovingAverageWeighting weighting, AstWindow window)
 {
     _arg       = Ensure.IsNotNull(arg, nameof(arg));
     _weighting = Ensure.IsNotNull(weighting, nameof(weighting));
     _window    = window;
 }
 public AstNullaryWindowExpression(AstNullaryWindowOperator @operator, AstWindow window)
 {
     _operator = @operator;
     _window   = window;
 }
        public AstUnaryWindowExpression Update(AstUnaryWindowOperator @operator, AstExpression arg, AstWindow window)
        {
            if (@operator == _operator && arg == _arg && window == _window)
            {
                return(this);
            }

            return(new AstUnaryWindowExpression(@operator, arg, window));
        }
 public AstUnaryWindowExpression(AstUnaryWindowOperator @operator, AstExpression arg, AstWindow window)
 {
     _operator = @operator;
     _arg      = Ensure.IsNotNull(arg, nameof(arg));
     _window   = window;
 }
示例#9
0
        public AstDerivativeOrIntegralWindowExpression Update(AstDerivativeOrIntegralWindowOperator @operator, AstExpression arg, WindowTimeUnit?unit, AstWindow window)
        {
            if (@operator == _operator && arg == _arg && unit == _unit && window == _window)
            {
                return(this);
            }

            return(new AstDerivativeOrIntegralWindowExpression(@operator, arg, unit, window));
        }
示例#10
0
        public AstBinaryWindowExpression Update(AstBinaryWindowOperator @operator, AstExpression arg1, AstExpression arg2, AstWindow window)
        {
            if (@operator == _operator && arg1 == _arg1 && arg2 == _arg2 && window == _window)
            {
                return(this);
            }

            return(new AstBinaryWindowExpression(@operator, arg1, arg2, window));
        }