| SeriesStatsExtensionsMeanLevelK1, K2 Method |
Groups the elements of the input series in groups based on the keys
produced by `groupSelector` and then returns a new series containing
the mean of each group.
This operation is designed to be used with [hierarchical indexing](../features.html#indexing).
## Parameters
- `series` - A series of values that are used to calculate the means
- `groupSelector` - A delegate that returns a new group key, based on the key in the input series
[category:Statistics]
Namespace:
Deedle
Assembly:
Deedle (in Deedle.dll) Version: 1.2
Syntax public static Series<K2, double> MeanLevel<K1, K2>(
this Series<K1, double> series,
Func<K1, K2> groupSelector
)
Parameters
- series
- Type: DeedleSeriesK1, Double
[Missing <param name="series"/> documentation for "M:Deedle.SeriesStatsExtensions.MeanLevel``2(Deedle.Series{``0,System.Double},System.Func{``0,``1})"]
- groupSelector
- Type: SystemFuncK1, K2
[Missing <param name="groupSelector"/> documentation for "M:Deedle.SeriesStatsExtensions.MeanLevel``2(Deedle.Series{``0,System.Double},System.Func{``0,``1})"]
Type Parameters
- K1
- K2
Return Value
Type:
SeriesK2,
Double[Missing <returns> documentation for "M:Deedle.SeriesStatsExtensions.MeanLevel``2(Deedle.Series{``0,System.Double},System.Func{``0,``1})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SeriesK1,
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also