CogStatistics GetBufferedMaxValue Method Cognex VisionPro 9.21
The maximum value sampled over the specified range of buffered values. Index 0 represents the oldest value. Index NumBufferedValues-1 represents the most recent value.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 83.0.0.0
Syntax

public double GetBufferedMaxValue(
	int startIndex,
	int endIndex
)

Parameters

startIndex
Type: System Int32

The 0-based index of the first buffered value to consider.

endIndex
Type: System Int32

The 0-based index of the last buffered value to consider.

Return Value

Type: Double

The returned maximum value.

Exceptions

ExceptionCondition
ArgumentException

startIndex is less than 0 or startIndex is greater than or equal to NumBufferedValues.

ArgumentException

endIndex is not cogNoIndex and endIndex is less than startIndex or endIndex is greater than or equal to NumBufferedValues.

CogDataAnalysisAllInvalidValuesException

All of the values within the supplied range are invalid.

Remarks

The maximum value within the specified range of buffered values. An index of 0 represents the oldest value; an index of NumBufferedValues - 1 represents the most recent value.

See Also