Creating a Simple Moving Average calculator in C#

added by DotNetKicks
5/4/2021 10:19:22 AM

781 Views

In this post I describe the Simple Moving Average, show a common optimisation for calculating it, and show a C# implementation. Finally I use Spectre.Console to allow calling the calculator, passing in the values and the window size k. In subsequent posts I'll expand on this implementation to add extra features and make it thread-safe.


0 comments