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.
Inherited Members
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
Exceptions
Type | Condition |
---|---|
NotImplementedException |