中位数计算拓展
EnumerableStatsMedian
01 Syntax
Microsoft.VisualBasic.Math.Statistics.Linq.EnumerableStatsMedian
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Median | 4 | Computes the Median of a sequence of System.Decimal values. |
03 Members
Median(
IEnumerable(Of Nullable(Of Decimal)))Computes the Median of a sequence of nullable System.Decimal values.
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Nullable(Of Decimal)) | A sequence of nullable System.Decimal values to calculate the Median of. |
Returns
The Median of the sequence of values, or null if the source sequence is empty or contains only values that are null.
Median(
IEnumerable(Of Decimal))Computes the Median of a sequence of System.Decimal values.
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Decimal) | A sequence of System.Decimal values to calculate the Median of. |
Returns
The Median of the sequence of values.
Median(
IEnumerable(Of Double))Computes the Median of a sequence of Double values.
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of Double) | A sequence of |
Returns
The Median of the sequence of values.
Median(
IEnumerable(Of TSource), Func(Of TSource, Nullable(Of Decimal)))