docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)