Dundas Chart for ASP.NET
Variance Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > Statistics Class : Variance Method


inputSeriesName
The name of the input Series object. The first Y-value (Y1) of its data points are used.
Input Series Name
sampleVariance
If true the data is a sample of a population, if false it is the entire population.
Boolen variable which determine if variance is used from sample.

Enterprise Edition Only Feature. This method returns the variance for a data group.


Estimates variance based on a sample.

Syntax

Visual Basic (Declaration)  
Public Function Variance( _
   ByVal inputSeriesName As String, _
   ByVal sampleVariance As Boolean _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As Statistics
Dim inputSeriesName As String
Dim sampleVariance As Boolean
Dim value As Double
 
value = instance.Variance(inputSeriesName, sampleVariance)
C#  
public double Variance( 
   string inputSeriesName,
   bool sampleVariance
)

Parameters

inputSeriesName
The name of the input Series object. The first Y-value (Y1) of its data points are used.
Input Series Name
sampleVariance
If true the data is a sample of a population, if false it is the entire population.
Boolen variable which determine if variance is used from sample.

Return Value

Returns Variance

Example

This sample gets the variance of the data points in a series named "Series1". Note that the Y1 value of the data points is used. We also assume that a sample from the entire population is not being used.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl<CRLF>...<CRLF><CRLF>Dim result As Double = Chart1.DataManipulator.Statistics.Variance("Series1", false)
C# Copy Code
using Dundas.Charting.WebControl;<CRLF>...<CRLF><CRLF>double result = Chart1.DataManipulator.Statistics.Variance("Series1", false);

Remarks

This method estimates the variance for a sample.

If the specified input series does not exist in the series collection 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.