CogStatisticsSimple Constructor (Int32, Double, Double, Double, Double)Cognex VisionPro 9.8 SR1
Constructs a CogStatisticsSimple object with the supplied values.

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

public CogStatisticsSimple(
	int valueCount,
	double valueMin,
	double valueMax,
	double valueSum,
	double valueSumSq
)

Parameters

valueCount
Type: System Int32
Int32. The number of samples. Must be greater than or equal to one.
valueMin
Type: System Double
double. The minimum sample value. Must be less than or equal to valueMax.
valueMax
Type: System Double
double. The maximum sample value. Must be greater than or equal to valueMin.
valueSum
Type: System Double
double. The sum of the sample values.
valueSumSq
Type: System Double
double. The sum of the squares of the sample values. Must be greater than or equal to zero.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException If valueCount is less than one.
ArgumentOutOfRangeException If valueSumSq is less than zero.
ArgumentOutOfRangeException If valueMin is greater than valueMax.
See Also