Back to Adaptive Vision Library website

You are here: Start » Function Reference » Statistics » FindDataMode_FixedCount

FindDataMode_FixedCount


Header:AVL.h
Namespace:avl

Find the mode of data sample by looking for highest concentration of a fixed number of samples

Syntax

C++
C#
 
void avl::FindDataMode_FixedCount
(
	const atl::Array<float>& inValues,
	atl::Optional<float> inMinValue,
	atl::Optional<float> inMaxValue,
	int inCount,
	atl::Optional<float> inCycle,
	float& outMode,
	float& outMiddle,
	float& outSpread
)

Parameters

Name Type Range Default Description
inValues const Array<float>&
inMinValue Optional<float> NIL
inMaxValue Optional<float> NIL
inCount int 2 - 3
inCycle Optional<float> NIL
outMode float&
outMiddle float&
outSpread float&

Errors

List of possible exceptions:

Error type Description
DomainError Empty array in FindDataMode_FixedCount.