Show / Hide Table of Contents

Class InterpolatedSampler

Simulation sampler that generates samples whose probability is given by a probability density function defined by linear interpolation between a set of control points.

Inheritance
object
SampleGenerator
InterpolatedSampler
Inherited Members
SampleGenerator.Sampler
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Simulation
Assembly: WMServer.dll
Syntax
public class InterpolatedSampler : SampleGenerator

Properties

ControlPoints

Control points that specify the sampling distribution.

Declaration
public IEnumerable<double[]> ControlPoints { get; set; }
Property Value
Type Description
IEnumerable<double[]>
Remarks

If ControlPoints is null or empty, Sample() behaves the same way as the default case of the Sample() method in the ContinuousUniformSampler class. Otherwise, the supplied collection is copied into a List and sorted in ascending order by the X coordinates.

Resolution

Specifies the number of sampling buckets the x-range from the min control point to the max control point is divided into. Defaults to 100.

Declaration
public int Resolution { get; set; }
Property Value
Type Description
int

Methods

Sample()

Generates a sample whose probability is given by a probability density function defined by linear interpolation between a set of control points

Declaration
public override ElementValue Sample()
Returns
Type Description
ElementValue
Overrides
SampleGenerator.Sample()
Exceptions
Type Condition
NotImplementedException
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE