EntityFunctions.StandardDeviationP 方法 (IEnumerable<Nullable<Int64>>)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
作为 LINQ to Entities 查询的一部分使用时,此方法调用规范 StDevP EDM 函数以计算总体的标准差。
命名空间: System.Data.Entity.Core.Objects
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
<DbFunctionAttribute("Edm", "StDevP")> _
Public Shared Function StandardDeviationP ( _
collection As IEnumerable(Of Nullable(Of Long)) _
) As Nullable(Of Double)
用法
Dim collection As IEnumerable(Of Nullable(Of Long))
Dim returnValue As Nullable(Of Double)
returnValue = EntityFunctions.StandardDeviationP(collection)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[DbFunctionAttribute("Edm", "StDevP")]
public static Nullable<double> StandardDeviationP(
IEnumerable<Nullable<long>> collection
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
[DbFunctionAttribute(L"Edm", L"StDevP")]
public:
static Nullable<double> StandardDeviationP(
IEnumerable<Nullable<long long>>^ collection
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
[<DbFunctionAttribute("Edm", "StDevP")>]
static member StandardDeviationP :
collection:IEnumerable<Nullable<int64>> -> Nullable<float>
public static function StandardDeviationP(
collection : IEnumerable<Nullable<long>>
) : Nullable<double>
参数
- collection
类型:System.Collections.Generic.IEnumerable<Nullable<Int64>>
要对其执行计算的集合。
返回值
类型:System.Nullable<Double>
总体的标准差。
备注
无法直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。 此函数将被转换为数据库中对应的函数。