|
Enhanced C#
Loyc library documentation
|
This class incrementally recomputes the sum of an AList{T} (or its variants - BList, BDictionary, and BMultiMap). More...
This class incrementally recomputes the sum of an AList{T} (or its variants - BList, BDictionary, and BMultiMap).
Public fields | |
| double | Sum => Summary |
| double | Average => Summary / TotalCountInAttachedLists |
Public fields inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary > | |
| IEnumerable< AListBase< K, T > > | AttachedLists => _roots.Keys |
| int | TotalCountInAttachedLists => _roots.Sum(pair => pair.Key.Count) |
| TSummary | Summary => GetSummary() |
Public Member Functions | |
| AListSumTracker (Func< T, double > selector, AListBase< K, T > list=null) | |
Public Member Functions inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary > | |
| AListStatisticTracker (Func< T, TSummary > selector, Func< TSummary[], TSummary > aggregator, TSummary emptyResult, AListBase< K, T > list=null) | |
| AListStatisticTracker (Func< T, TSummary > selector, Func< TSummary, TSummary, TSummary > aggregator, TSummary emptyResult, AListBase< K, T > list=null) | |
Public Member Functions inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary > | |
| TSummary | GetSummary () |
Public Member Functions inherited from Loyc.Collections.Impl.IAListTreeObserver< K, T > | |
| void | Detach (AListBase< K, T > list, AListNode< K, T >?root) |
| Called when the observer is being detached from an AList. Detach(), unlike Attach(), is not paired with a call to RootChanged. More... | |
| void | RootChanged (AListBase< K, T > list, AListNode< K, T >?root, bool clear) |
| Called when the root of the tree changes, or when the list is cleared. Also called after Attach(), but not after Detach(). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary > | |
| override TSummary | Aggregate (TSummary[] data) |
| override TSummary | Summarize (AListLeafBase< K, T > data) |
Protected Member Functions inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary > | |
| TSummary | GetSummary (AListNode< K, T > node) |
Protected fields inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary > | |
| override TSummary | EmptyResult => _emptyResult |
Protected fields inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary > | |
| virtual TSummary | EmptyResult => Aggregate(Empty<TSummary>.Array) |
1.8.7