This method returns the variance for a data group.
Estimates variance based on a sample.
Syntax
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)
|
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.WinControl ...
Dim result As Double = Chart1.DataManipulator.Statistics.Variance("Series1", false) |
C# |
Copy Code |
using Dundas.Charting.WinControl; ...
double result = Chart1.DataManipulator.Statistics.Variance("Series1", false); |
Remarks
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