.netCHARTING v10.5 Documentation


The name of the element which will be displayed on the chart, i.e. its label.
A statistical series.
Mean(String,Series) Method
Calculates the arithmetic mean of the elements YValues of the series.
Syntax
'Declaration
 
Public Overloads Shared Function Mean( _
   ByVal elementName As String, _
   ByVal s As Series _
) As Element
'Usage
 
Dim elementName As String
Dim s As Series
Dim value As Element
 
value = StatisticalEngine.Mean(elementName, s)
public static Element Mean( 
   string elementName,
   Series s
)

Parameters

elementName
The name of the element which will be displayed on the chart, i.e. its label.
s
A statistical series.

Return Value

An element with his YValue representing the arithmetic mean of the elements YValues of the series
Exceptions
ExceptionDescription
Thrown if the series s is empty.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also