Show / Hide Table of Contents

Class SumAndCount

Sum and count aggregation. Can be used for Average calculation.

Inheritance
System.Object
SumAndCount
Namespace: Eco.Shared.Tools
Assembly: Eco.Shared.dll
Syntax
public sealed class SumAndCount : ValueType

Fields

Count

Declaration
public int Count
Field Value
Type Description
System.Int32

Sum

Declaration
public double Sum
Field Value
Type Description
System.Double

Properties

Average

Declaration
public double Average { get; }
Property Value
Type Description
System.Double

Methods

Add(Double)

Declaration
public void Add(double value)
Parameters
Type Name Description
System.Double value

Remove(Double)

Declaration
public void Remove(double value)
Parameters
Type Name Description
System.Double value

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾