Επεξεργασία

Κοινή χρήση μέσω


StatisticFormula.Median(String) Method

Definition

The median formula calculates the median of the data stored in a data series.

public:
 double Median(System::String ^ inputSeriesName);
public double Median (string inputSeriesName);
member this.Median : string -> double
Public Function Median (inputSeriesName As String) As Double

Parameters

inputSeriesName
String

Name of the Series object that stores the data for which the median value is required.

Returns

Median of all the data points in the given series.

Examples

The following code demonstrates how to use this formula.

Dim result As Double = Chart1.DataManipulator.Statistics.Median("Series1")  
double result = Chart1.DataManipulator.Statistics.Median("Series1");  

Remarks

If the named input series does not exist in the SeriesCollection at the time of the method call, an exception is thrown.

Applies to