/// <summary> /// The StdDevSideEffectArrow produces a side effect that /// is 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 StdDevSideEffectArrow StdDevSideEffectArrow(this IArrowSender <Double> ArrowSender, IArrowReceiver <Double> Recipient, params IArrowReceiver <Double>[] Recipients) { var _CountArrow = new StdDevSideEffectArrow(Recipient, Recipients); ArrowSender.OnMessageAvailable += _CountArrow.ReceiveMessage; return(_CountArrow); }
/// <summary> /// The StdDevSideEffectArrow produces a side effect that /// is 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 StdDevSideEffectArrow StdDevSideEffectArrow(this IArrowSender <Double> ArrowSender) { var _StdDevSideEffectArrow = new StdDevSideEffectArrow(); ArrowSender.OnMessageAvailable += _StdDevSideEffectArrow.ReceiveMessage; return(_StdDevSideEffectArrow); }