Click or drag to resize

MinMaxQueue Constructor (Int32, MinMaxQueueMinOrMax)

Initializes a new instance of the FinAnalysis.Base.MinMaxQueue. Queue will find Min or Max on sliding window of exact "capacity" elements.

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public MinMaxQueue(
	int capacity,
	MinMaxQueueMinOrMax minOrMax
)

Parameters

capacity
Type: SystemInt32
Queue will find Min or Max on sliding window of exact "capacity" elements.
minOrMax
Type: FinAnalysis.BaseMinMaxQueueMinOrMax
MinMaxQueue.MinOrMax.CalcMin for finding min. MinMaxQueue.MinOrMax.CalcMin for finding max.
Exceptions
ExceptionCondition
ArgumentExceptionCapacity should be more than zero.
See Also