Exemplo n.º 1
0
        public void LowPassAveragingAggregator_Applys_Filter()
        {
            var aggregator = new LowPassAveragingAggregator(_measurements);

            var result = aggregator.Aggregate();

            Assert.Equal(3, result.X);
            Assert.Equal(12, result.Y);
        }
Exemplo n.º 2
0
        public void LowPassAveragingAggregator_Applys_Filter()  // lowpass means both x and y of a measurement are < 100
        {
            var aggregator = new LowPassAveragingAggregator(_measurements);

            var result = aggregator.Aggregate();

            Assert.Equal(3, result.X);  // averages { X = 5, Y = 10}  and this { X = 2, Y = 15},
            Assert.Equal(12, result.Y);
        }