Method FeatureDeviation
FeatureDeviation(NativeArray<float3>, NativeArray<float3>)
Calculates the normalized deviation between normalized encodings.
Declaration
public float FeatureDeviation(NativeArray<float3> current, NativeArray<float3> candidate)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<float3> | current | First element of the encoding pair. |
| NativeArray<float3> | candidate | Second element of the encoding pair. |
Returns
| Type | Description |
|---|---|
| float | The normalized similarity value. |
Remarks
Given a pair of normalized feature encodings this method calculates a normalized value denoting the corresponding similarity value.
The resulting value is always in the range between 0 and 1. A value of 0 indicates perfect similarity and a value of 1 indicates the maximum possible deviation subject to the training data.