Dundas Chart for ASP.NET
Mean Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > Statistics Class : Mean 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.
Input Series Name

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


/// Returns the average (arithmetic mean) of the arguments.

Syntax

Visual Basic (Declaration)  
Public Function Mean( _
   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.Mean(inputSeriesName)
C#  
public double Mean( 
   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.
Input Series Name

Return Value

Returns Mean

Example

This sample gets the average 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.Mean("Series1")
C# Copy Code
using Dundas.Charting.WebControl;<CRLF>...<CRLF><CRLF>double result = Chart1.DataManipulator.Statistics.Mean("Series1");

Remarks

Use this method to calculate the mean (i.e. 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 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.