Back to Aurora Vision Library website

You are here: Start » Function Reference » Data Classification » Statistics » FindDataMode_FixedSpread

FindDataMode_FixedSpread


Header: AVL.h
Namespace: avl
Module: FoundationPro

Finds the mode in a set of data values by looking for highest number of samples withing the specified spread.

Applications: Can be used to determine a histogram maximum without actually creating the histogram.

Syntax

C++
C#
 
void avl::FindDataMode_FixedSpread
(
	const atl::Array<float>& inValues,
	float inSpread,
	atl::Optional<float> inCycle,
	float& outMode,
	float& outMiddle,
	int& outCount,
	float& outSpread
)

Parameters

Name Type Range Default Description
Input value inValues const Array<float>&
Input value inSpread float 0.0 - 2.0f
Input value inCycle Optional<float> NIL
Output value outMode float&
Output value outMiddle float&
Output value outCount int&
Output value outSpread float&

Errors

List of possible exceptions:

Error type Description
DomainError Empty array in FindDataMode_FixedSpread.