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); }
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); }
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); }
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); }
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); }
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); }
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 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); }
public Measurement Aggregate() { var aggregator = new PointsAggregator(_measurements, new HighPassFilter(), new SummingStrategy()); return(aggregator.Aggregate()); }
public virtual Measurement Aggregate() { return(highPassSumming.Aggregate()); }