FindDataMode_FixedSpread


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#
Python
 
def FindDataMode_FixedSpread(
	inValues: list[float],
	/,
	*,
	inSpread: float = 2.0,
	inCycle: float | None = None
)
-> (
	outMode: float,
	outMiddle: float,
	outCount: int,
	outSpread: float
)

Parameters

Name Type Range Default Description
Input value inValues list[float]
Input value inSpread float 0.0 - 2.0
Input value inCycle float | None None
Output value outMode float
Output value outMiddle float
Output value outCount int
Output value outSpread float