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


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
Calculates the arithmetic mean of the elements YValues of each of the series within the collection of series.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Mean( _
   ByVal seriesName As String, _
   ByVal sc As SeriesCollection _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim sc As SeriesCollection
Dim value As Series
 
value = StatisticalEngine.Mean(seriesName, sc)
C# 
public static Series Mean( 
   string seriesName,
   SeriesCollection sc
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.

Exceptions

ExceptionDescription
ArgumentExceptionThrown if the sc does not contain any series.

See Also

© 2021 All Rights Reserved.