IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Base class for sampling classes that produce a desired number of sampling points with a particular arrangement in space. More...
Public Member Functions | |
SamplerBase (int spaceDimension) | |
Constructs a new sampling point generator for the specified dimension of sampling space. More... | |
abstract void | GetSamplingPoint (ref IVector samplingPoint) |
Creates the next sampling point and stores it to the specified vector. More... | |
virtual void | GetSamplingPoints (int numPoints, ref IVector[] samplingPoints) |
Creates the specified number of next sampling points and stores it to the specified array of vectors. More... | |
void | ResizeSamplingPoints (int numPoints, ref IVector[] samplingPoints) |
Auxiliary method that resizes the array of sampling points, and also the vectors contained in it, as necessary. More... | |
Protected Attributes | |
int | _spaceDimension |
Properties | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
int | SpaceDimension [get, protected set] |
![]() | |
int | SpaceDimension [get] |
![]() | |
object | Lock [get] |
Private Member Functions | |
SamplerBase () | |
Prevent calling default constructor. More... | |
Private Attributes | |
readonly object | _mainLock = new object() |
Base class for sampling classes that produce a desired number of sampling points with a particular arrangement in space.
$A Igor xx;
|
inlineprivate |
Prevent calling default constructor.
|
inline |
Constructs a new sampling point generator for the specified dimension of sampling space.
spaceDimension | Dimension of the sampling space. |
|
pure virtual |
Creates the next sampling point and stores it to the specified vector.
samplingPoint | Vector where the generated sampling point is stored. |
Implements IG.Num.ISampler.
Implemented in IG.Num.SamplerUnitBallRandomFromCube, IG.Num.SamplerBoxRandomUniform, and IG.Num.SamplerCubeRandomUniform.
|
inlinevirtual |
Creates the specified number of next sampling points and stores it to the specified array of vectors.
samplingPoint | Array of vectors where the generated sampling points are stored. |
In general, the storage array and its elements will be resized if necessary, in order to fit the number and dimension of sampling points.
Implements IG.Num.ISampler.
|
inline |
Auxiliary method that resizes the array of sampling points, and also the vectors contained in it, as necessary.
Dimension of vectors contained in the array is specified by the SpaceDimension property.
numPoints | Number of points that should fit in the array. |
(sampling points) contained in the array.
samplingPoints | The array for storing sampling points that is resized. |
References IG.Num.VectorBase.Resize().
|
private |
|
protected |
|
get |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
|
getprotected set |