Click or drag to resize

UltimateSummator Class

Special summator class, for calculation optimization. It can be useful for fast calculation sum in various periods in sliding window.
Inheritance Hierarchy
SystemObject
  FinAnalysis.BaseUltimateSummator

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public sealed class UltimateSummator : IEnumerable<double>, 
	IEnumerable

The UltimateSummator type exposes the following members.

Constructors
  NameDescription
Public methodUltimateSummator
Default constructor.
Public methodUltimateSummator(Int32)
Create new instance of ultimate summator.
Public methodUltimateSummator(TimeSpan)
Create new instance of ultimate summator.
Top
Properties
  NameDescription
Public propertyCount
Number of point in summator.
Public propertyItemDateTime
Return historically latest element with smaller or equal DateTime. Note: do not try to use this method if you didn't specify DateTime to data elements.
Public propertyItemInt32
Get data which was store "pointsCount" steps ago.
Public propertyTotalSum
Total sum of points in sliding window.
Top
Methods
  NameDescription
Public methodClone
Makes full copy of this instance.
Public methodCopyTo
Sets internal state to destination object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetIntervalSum(DateTime, DateTime)
Get sum on time-based interval.
Public methodGetIntervalSum(Int32, Int32)
Get sum on point-based interval.
Public methodGetIntervalSumOffsets
Get sum on point-based interval.
Public methodGetSumFromFirst(DateTime)
Get sum from the oldest point in sliding window to specified time inclusively.
Public methodGetSumFromFirst(Int32)
Get sum of pointsCount elements starting from the very oldest point.
Public methodGetSumFromLast(DateTime)
Get sum from the recent point in sliding window to specified time inclusively.
Public methodGetSumFromLast(Int32)
Get sum of pointsCount elements starting from current point.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPut(Double)
Store new data element in summator. Note: Please do not use both with and without DateTime method for one queue instance.
Public methodPut(Double, DateTime)
Store new data element in summator. Note: Please do not use both with and without DateTime method for one queue instance.
Public methodToArray
Copies the elements of the SimpleDataQueue to a new array.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberDefaultDateTime
Default DateTime, which will be assumed as default date value.
Top
See Also