EntityFunctions.Var Method (IEnumerable<Int64>)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Invokes the canonical Var function. For information about the canonical Var function, see Canonical Functions.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("Edm", "Var")]
public static Nullable<double> Var(
	IEnumerable<long> collection


Type: System.Collections.Generic.IEnumerable<Int64>

The set of values for which the variance will be calculated.

Return Value

Type: System.Nullable<Double>

The statistical variance of all values in the specified collection.

This function is translated to a corresponding function in the database.

.NET Framework
Available since 4.0
Return to top