Description

Sample weights to use for the weighted average EdgeFindingMethod approaches.

Property type

A Variant value.  

Syntax

object.Weights [= value]

The Weights Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McProfileEdges.
valueA Variant value.

Remarks

The weighted average methods EdgeFindingMethod values (mcpefmPeaks, mcpefmValleys, mcpefmRisingEdges and mcpefmFallingEdges) give a designated weight to each of MatchLength samples for each sample position along the profile. The Weights property allows assignment of these weights, though the default is usually satisfactory. By default the Weights are 0.6, 0.8, 1.0, 0.8, 0.6 (that is, the center point gets full weight and the profile samples on either side are given slightly less weight). The Weights property array is automatically mapped onto the MatchLength, so MatchLength could be changed to 7 for example without needing to change the Weights property (this would favor more gradual transitions). Assigning to the Weights property does NOT disturb the MatchLength property.

On assignment Weights array must be at least length 1, values must be non-negative, and their sum must be non-zero. Before being used to produce the WeightedProfiles, the array is mapped (stretched or interpolated) to the MatchLength and then normalized so that its elements sum to 1.0.

The Weights property is exposed as an array of Double.

The Weights property is ignored for the mcpefmMatchPattern EdgeFindingMethod.