using System; using UnityEngine; namespace UnityEngine.Perception.Randomization.Samplers { /// /// Generates random values from probability distributions /// public interface ISampler { /// /// Generates one sample /// /// The generated sample float Sample(); /// /// Validates that the sampler is configured properly /// void Validate(); /// /// Check that the provided values adhere to the and outputs for this sampler. /// public void CheckAgainstValidRange(); /// /// Whether the provided and values should be used to validate this sampler. /// public bool shouldCheckValidRange { get; set; } /// /// The smallest value this sampler should output /// public float minAllowed { get; set; } /// /// The largest value this sampler should output /// public float maxAllowed { get; set; } } }