.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > StatisticalEngine Class > Mean Method : Mean(String,SeriesCollection) Method
The name of the series which will be displayed on the chart, i.e. its label.
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.
Mean(String,SeriesCollection) Method
Calculates the arithmetic mean of the elements YValues of each of the series within the collection of series.
Syntax
'Declaration
 
Public Overloads Shared Function Mean( _
   ByVal seriesName As String, _
   ByVal sc As SeriesCollection _
) As Series
'Usage
 
Dim seriesName As String
Dim sc As SeriesCollection
Dim value As Series
 
value = StatisticalEngine.Mean(seriesName, sc)
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
Thrown if the sc does not contain any series.
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