您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
642 B
24 行
642 B
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Scripting.APIUpdating;
|
|
|
|
namespace UnityEngine.Perception.Randomization.Samplers
|
|
{
|
|
/// <summary>
|
|
/// Generates random values from probability distributions
|
|
/// </summary>
|
|
[MovedFrom("UnityEngine.Experimental.Perception.Randomization.Samplers")]
|
|
public interface ISampler
|
|
{
|
|
/// <summary>
|
|
/// Generates one sample
|
|
/// </summary>
|
|
/// <returns>The generated sample</returns>
|
|
float Sample();
|
|
|
|
/// <summary>
|
|
/// Validates that the sampler is configured properly
|
|
/// </summary>
|
|
void Validate();
|
|
}
|
|
}
|