Exemplo n.º 1
0
        public void HighPassSummingAggregator_Applys_Filter()
        {
            var aggregator = new PointsAggregator(_measurements, new HighPassFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(105, result.X); // add everything that that is > 2 together
            Assert.Equal(15, result.Y);
        }
Exemplo n.º 2
0
        public void SummingAggregation_Produces_Sum()
        {
            var aggregator = new PointsAggregator(_measurements, new EmptyFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(107, result.X); //sums up x and ys
            Assert.Equal(30, result.Y);
        }
Exemplo n.º 3
0
        public void AveragingAggregagtor_Produces_Average()
        {
            var aggregator = new PointsAggregator(_measurements, new EmptyFilter(), new AveragingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(35, result.X);
            Assert.Equal(10, result.Y);
        }
Exemplo n.º 4
0
        public void LowPassAveragingAggregator_Applys_Filter()
        {
            var aggregator = new PointsAggregator(_measurements, new LowPassFilter(), new AveragingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(3, result.X);
            Assert.Equal(12, result.Y);
        }
Exemplo n.º 5
0
        public void SummingAggregation_Produces_Sum()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new EmptyFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(107, result.X);
            Assert.Equal(30, result.Y);
        }
Exemplo n.º 6
0
        public void HighPassSummingAggregator_Applys_Filter()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new HighPassFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(105, result.X);
            Assert.Equal(15, result.Y);
        }
Exemplo n.º 7
0
        public void LowPassAveragingAggregator_Applys_Filter()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new LowPassFilter(), new AveragingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(3, result.X);
            Assert.Equal(12, result.Y);
        }
Exemplo n.º 8
0
        public void AveragingAggregagtor_Produces_Average()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new EmptyFilter(), new AveragingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(35, result.X);
            Assert.Equal(10, result.Y);
        }
Exemplo n.º 9
0
        public void SummingAggregation_Produces_Sum()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new EmptyFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(107, result.X);
            Assert.Equal(30, result.Y);
        }
Exemplo n.º 10
0
        public void HighPassSummingAggregator_Applys_Filter()
        {
            var aggregator = new Algorithm.Composition.PointsAggregator(_measurements, new HighPassFilter(), new SummingStrategy());

            var result = aggregator.Aggregate();

            Assert.Equal(105, result.X);
            Assert.Equal(15, result.Y);
        }
        public Measurement Aggregate()
        {
            var aggregator = new PointsAggregator(_measurements, new HighPassFilter(), new SummingStrategy());

            return(aggregator.Aggregate());
        }
Exemplo n.º 12
0
 public HighPassSummingAggregator(IEnumerable <Measurement> measurements)
 {
     _pointsAggregator = new PointsAggregator(measurements, new HighPassFilter(), new SummingStrategy());
 }
Exemplo n.º 13
0
 public HighPassSummingAggregator(Measurement[] measurements)
 {
     highPassSumming = new PointsAggregator(measurements, new HighPassFilter(), new SummingStrategy());
 }