docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SamplerUtility

    A set of utility functions for defining sampler interfaces

    Inheritance
    object
    SamplerUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Perception.Randomization.Samplers
    Assembly: solution.dll
    Syntax
    public static class SamplerUtility

    Methods

    Name Description
    GenerateRandomSeed()

    Non-deterministically generates a non-zero random seed

    GenerateSamples<T>(T, int, out JobHandle)

    Schedules a multi-threaded job to generate an array of samples

    GetSamplerDisplayName(Type)

    Returns the sampler's display name

    IterateSeed(uint, uint)

    Generates new a new non-zero random state by deterministically hashing a base seed with an iteration index

    TruncatedNormalSample(float, float, float, float, float)

    Generates samples from a truncated normal distribution. Further reading about this distribution can be found here: https://en.wikipedia.org/wiki/Truncated_normal_distribution

    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)