示例#1
0
        /// <summary>
        /// The StdDevArrow consumes doubles and emitts the
        /// sliding standard deviation and the average of
        /// messages/objects that have passed through it.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        /// <param name="Recipient">A recipient of the processed messages.</param>
        /// <param name="Recipients">Further recipients of the processed messages.</param>
        public static StdDevArrow StdDevArrow(this IArrowSender <Double> ArrowSender, IArrowReceiver <Tuple <Double, Double, Double> > Recipient, params IArrowReceiver <Tuple <Double, Double, Double> >[] Recipients)
        {
            var _StdDevArrow = new StdDevArrow(Recipient, Recipients);

            ArrowSender.OnMessageAvailable += _StdDevArrow.ReceiveMessage;
            return(_StdDevArrow);
        }
示例#2
0
        /// <summary>
        /// The StdDevArrow consumes doubles and emitts the
        /// sliding standard deviation and the average of
        /// messages/objects that have passed through it.
        /// </summary>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        public static StdDevArrow StdDevArrow(this IArrowSender <Double> ArrowSender)
        {
            var _StdDevArrow = new StdDevArrow();

            ArrowSender.OnMessageAvailable += _StdDevArrow.ReceiveMessage;
            return(_StdDevArrow);
        }