BrickPi.Tools.MovingAverage.UpdateAndGetAverage C# (CSharp) Method

UpdateAndGetAverage() public method

public UpdateAndGetAverage ( float newValue ) : float
newValue float
return float
        public float UpdateAndGetAverage(float newValue)
        {
            Update(newValue);
            return GetAverage();
        }