|
using System;
using Clifton.Collections.Generic;
using Clifton.Tools.Data;
namespace AveragerTest
{
class Program
{
static void Main(string[] args)
{
IMovingAverage avg = new SimpleMovingAverage(10);
Test(avg);
}
static void Test(IMovingAverage avg)
{
for (int i = 0; i < 20; i++)
{
avg.AddSample(i);
Console.WriteLine(avg.Average);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.