您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
579 B
24 行
579 B
using System;
|
|
using Unity.Collections;
|
|
using Unity.Jobs;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEngine.Experimental.Perception.Randomization.Samplers
|
|
{
|
|
/// <summary>
|
|
/// Generates random values from probability distributions
|
|
/// </summary>
|
|
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();
|
|
}
|
|
}
|