Constructs a CogStatisticsSimple object with the supplied values.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax
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
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If valueCount is less than one. |
| ArgumentOutOfRangeException | If valueSumSq is less than zero. |
| ArgumentOutOfRangeException | If valueMin is greater than valueMax. |
See Also