Back to FabImage Library website
You are here: Start » Function Reference » Data Classification » Statistics » FindDataMode_FixedCount

FindDataMode_FixedCount
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Finds the mode in a set of data values by looking for highest concentration of a fixed number of samples.
Applications: Can be used to determine a histogram maximum without actually creating the histogram.
Syntax
C++
C#
void fil::FindDataMode_FixedCount ( const ftl::Array<float>& inValues, ftl::Optional<float> inMinValue, ftl::Optional<float> inMaxValue, int inCount, ftl::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. |