Class SetMatchesBufferTests | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class SetMatchesBufferTests

    Inheritance
    Object
    SetMatchesBufferTests
    Namespace: Unity.MARS.Tests
    Syntax
    public class SetMatchesBufferTests

    Methods

    Add(Int32)

    Declaration
    public void Add(int setSize)
    Parameters
    Type Name Description
    Int32 setSize

    ChooseHighestRated_WithFirstBehavior(List<KeyValuePair<Int32, Single>[]>, List<Single>, KeyValuePair<Int32, Single>)

    Declaration
    public void ChooseHighestRated_WithFirstBehavior(List<KeyValuePair<int, float>[]> hypotheses, List<float> ratings, KeyValuePair<int, float> expectedIndexToRating)
    Parameters
    Type Name Description
    List<KeyValuePair<Int32, Single>[]> hypotheses
    List<Single> ratings
    KeyValuePair<Int32, Single> expectedIndexToRating

    ChooseHighestRated_WithRandomBehavior(List<KeyValuePair<Int32, Single>[]>, List<Single>, KeyValuePair<Int32, Single>)

    Declaration
    public void ChooseHighestRated_WithRandomBehavior(List<KeyValuePair<int, float>[]> hypotheses, List<float> ratings, KeyValuePair<int, float> expectedIndexToRating)
    Parameters
    Type Name Description
    List<KeyValuePair<Int32, Single>[]> hypotheses
    List<Single> ratings
    KeyValuePair<Int32, Single> expectedIndexToRating

    Constructor(Int32, Int32)

    Declaration
    public void Constructor(int capacity, int setSize)
    Parameters
    Type Name Description
    Int32 capacity
    Int32 setSize

    FindHighestRated_HasTies(List<KeyValuePair<Int32, Single>[]>, List<Single>, KeyValuePair<Single, Int32[]>)

    Declaration
    public void FindHighestRated_HasTies(List<KeyValuePair<int, float>[]> hypotheses, List<float> ratings, KeyValuePair<float, int[]> expectedRatingToIndices)
    Parameters
    Type Name Description
    List<KeyValuePair<Int32, Single>[]> hypotheses
    List<Single> ratings
    KeyValuePair<Single, Int32[]> expectedRatingToIndices

    FindHighestRated_NoTies(List<KeyValuePair<Int32, Single>[]>, List<Single>, KeyValuePair<Single, Int32>)

    Declaration
    public void FindHighestRated_NoTies(List<KeyValuePair<int, float>[]> hypotheses, List<float> ratings, KeyValuePair<float, int> expectedRatingToIndex)
    Parameters
    Type Name Description
    List<KeyValuePair<Int32, Single>[]> hypotheses
    List<Single> ratings
    KeyValuePair<Single, Int32> expectedRatingToIndex
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023