You are here: Start » AVL.NET » AVS.FindDensityMaxima_FixedCount Method
AVS.FindDensityMaxima_FixedCount Method
Finds local density maxima in set of values by looking for the highest concentration of a fixed number of samples.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void FindDensityMaxima_FixedCount ( IList<float> inValues, int inCount, float? inMaxSpread, bool inAllowOverlapping, float? inCycle, AvlNet.DataModeFunction inModeFunction, AvlNet.LocalBlindness? inLocalBlindness, IList<float> outModes, IList<float> outSpreads )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inValues | System.Collections.Generic.IList<float> | Data points array. | |||
inCount | int | <2, INF> | 3 | Number of points in a single window. Default value: 3. | |
inMaxSpread | float? | Maximum spread of points within a window. Default value: atl::NIL. | |||
inAllowOverlapping | bool | If true all local maxima will be returned otherwise for each group of ranges that overlap a single mode will be returned (the middle of the group). | |||
inCycle | float? | Length of the cycle if data is to be considered cyclically. Default value: atl::NIL. | |||
inModeFunction | AvlNet.DataModeFunction | Mean | Method of calculating the center of a data mode. Default value: Mean. | ||
inLocalBlindness | AvlNet.LocalBlindness? | Helps to sieve out unnecessary points. Default value: atl::NIL. | |||
outModes | System.Collections.Generic.IList<float> | Computed data modes. | |||
outSpreads | System.Collections.Generic.IList<float> | Spreads of windows that had a mode. |