docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISampler

    Generates random values from probability distributions

    Namespace: UnityEngine.Perception.Randomization.Samplers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public interface ISampler

    Properties

    maxAllowed

    The largest value this sampler should output

    Declaration
    float maxAllowed { get; set; }
    Property Value
    Type Description
    float

    minAllowed

    The smallest value this sampler should output

    Declaration
    float minAllowed { get; set; }
    Property Value
    Type Description
    float

    shouldCheckValidRange

    Whether the provided minAllowed and maxAllowed values should be used to validate this sampler.

    Declaration
    bool shouldCheckValidRange { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CheckAgainstValidRange()

    Check that the provided values adhere to the minAllowed and maxAllowed outputs for this sampler.

    Declaration
    void CheckAgainstValidRange()

    Sample()

    Generates one sample

    Declaration
    float Sample()
    Returns
    Type Description
    float

    The generated sample

    Validate()

    Validates that the sampler is configured properly

    Declaration
    void Validate()
    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)