Dundas Chart for ASP.NET
Median Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > Statistics Class : Median Method


inputSeriesName
The name of a data series. The median of all data points in the series will be calculated, using the first Y-values (Y1) of the points.
The name of a data series. The median of all data points in the series will be calculated, using the first Y-values (Y1) of the points.
Input Series Name

Enterprise Edition Only Feature. This method returns the median of all data points in the specified series.


Returns the median of the given numbers. The median is the number in the middle of a set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less.

Syntax

Visual Basic (Declaration)  
Public Function Median( _
   ByVal inputSeriesName As String _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As Statistics
Dim inputSeriesName As String
Dim value As Double
 
value = instance.Median(inputSeriesName)
C#  
public double Median( 
   string inputSeriesName
)

Parameters

inputSeriesName
The name of a data series. The median of all data points in the series will be calculated, using the first Y-values (Y1) of the points.
The name of a data series. The median of all data points in the series will be calculated, using the first Y-values (Y1) of the points.
Input Series Name

Return Value

Returns Median

Example

This sample gets the median of the data points in a series named "Series1". Note that the Y1 value of the data points is used.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl<CRLF>...<CRLF><CRLF>Dim result As Double = Chart1.DataManipulator.Statistics.Median("Series1")
C# Copy Code
using Dundas.Charting.WebControl;<CRLF>...<CRLF><CRLF>double result = Chart1.DataManipulator.Statistics.Median("Series1");

Remarks

Use this method to calculate the median of the points stored in a series.

The median is the middle value of a sample set, where half of the members are greater in size and half the members are lesser in size.

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.