You are here: Start » FIL.NET » Invoke.ProfileAutocorrelation
Computes the correlation between neighboring sub-profiles of different sizes and infers the most probable period length.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void ProfileAutocorrelation ( Fil.Profile inProfile, int inStart, int inMinPeriod, int inMaxPeriod, int inMinVerifiedLength, bool inFlexibleVerification, int inMinRepeatCount, float inHarmonicHysteresis, Fil.PeriodPrecisionMethod inPrecisionMethod, List<float> outAutocorrelationValues, out float outPeriod, out float outPeriodScore )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inProfile | Fil.Profile | Input profile. | ||
![]() | inStart | int | <0, INF> | Beginning index of the sub-profile of interest. | |
![]() | inMinPeriod | int | <2, INF> | 2 | Minimum period length. Default value: 2. |
![]() | inMaxPeriod | int | <2, INF> | 2 | Maximum period length. Default value: 2. |
![]() | inMinVerifiedLength | int | <1, INF> | 1 | Minimum number of profile points that verify single period (increases the actual RepeatCount for small periods). Default value: 1. |
![]() | inFlexibleVerification | bool | Compensates errors resulting from whole-pixel precision. | ||
![]() | inMinRepeatCount | int | <1, INF> | 1 | The number of repeats for sufficiently big periods. Default value: 1. |
![]() | inHarmonicHysteresis | float | <0.0f, 1.0f> | 0.05f | Defines how much better must be the period T than T/2, T/3 etc. to be accepted. Default value: 0.05f. |
![]() | inPrecisionMethod | Fil.PeriodPrecisionMethod | Defines if and how sub-point precision is achieved. | ||
![]() | outAutocorrelationValues | System.Collections.Generic.List<float> | Autocorrelation values for consecutive period values. | ||
![]() | outPeriod | float | Estimated period length. | ||
![]() | outPeriodScore | float | Correlation value for the estimated period length. |