dotnetCHARTING Send comments on this topic.
Mean(String,Series) Method
See Also 
dotnetCHARTING Namespace > StatisticalEngine Class > Mean Method : Mean(String,Series) Method


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

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Mean( _
   ByVal elementName As String, _
   ByVal s As Series _
) As Element
Visual Basic (Usage)Copy Code
Dim elementName As String
Dim s As Series
Dim value As Element
 
value = StatisticalEngine.Mean(elementName, s)
C# 
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
!MISSING Scrap '__TITLE'!Thrown if the series s is empty.

See Also

© 2021 All Rights Reserved.