Upravit

Sdílet prostřednictvím


StatisticFormula.Variance(String, Boolean) Method

Definition

The variance formula calculates the variance within a group of data.

public:
 double Variance(System::String ^ inputSeriesName, bool sampleVariance);
public double Variance (string inputSeriesName, bool sampleVariance);
member this.Variance : string * bool -> double
Public Function Variance (inputSeriesName As String, sampleVariance As Boolean) As Double

Parameters

inputSeriesName
String

Name of the Series object that stores the data for which the mean value is required.

sampleVariance
Boolean

Specify true if the data is a sample of a population; and false if the data is the entire population.

Returns

Variance within the group of data.

Examples

The following code demonstrates how to use this formula.

Dim result As Double = Chart1.DataManipulator.Statistics.Variance("Series1", false)  
TTestResult result = double result = Chart1.DataManipulator.Statistics.Variance("Series1", false);  

Applies to