Mean and standard Deviaton of array with Math.Net
<p>I am using MathNet .dll and have to calculate mean and standard deviation from array of decimal values.</p>

<pre><code>using MathNet.Numerics.Statistics;



static void Main(string[] args)
        {
            decimal[] values = { 39.99m, 29.99m, 19.99m, 49.99m };
            MathNet.Numerics.Statistics.
        }
</code></pre>

<p>But I am not getting a method to calculate mean.I have to perform many mathmatical operation but no getting  starting point.I would be grateful if someone can point me in right direction.I tried but can not find any sample so that I can use that info for rest of mathmatical operations.
I have to use MathNet library .
Thanks</p>

<p>Entire Code</p>

<pre><code>using System;
using MathNet.Numerics.Statistics;
using System.Linq;

public class Program
{
    public static void Main()
    {
        decimal[] values = new[] { 39.99m, 29.99m, 19.99m, 49.99m };
        Tuple&lt;double, double&gt; meanStd = values
            .Select(x =&gt; (double)x)
            .MeanStandardDeviation();

        double mean = meanStd.Item1;
        double std = meanStd.Item2;

        Console.WriteLine("Mean = " + mean);
        Console.WriteLine("Std = " + std);
    }
}
</code></pre>