StatisticFormula.Mean(String) Method

Definition

Returns the average of all data points stored in the specified series.

C#
public double Mean(string inputSeriesName);

Parameters

inputSeriesName
String

Input series name.

Returns

A double value that represents the average of all data points.

Remarks

Use this method to calculate the mean (that is, the average) of the points stored in a series.

If the specified input series does not exist in the SeriesCollection at the time of the method call, an exception will be thrown.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1