| PartitionOptimizationContextPartialSample Method |
Draws the specified subset of a sample from a distribution
characterized by the given parameter, using the stated
random number generator. Used when executing the sampling
step of a
CrossEntropyProgram running
in this context.
Namespace:
Novacta.Analytics.Advanced
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax protected override void PartialSample(
double[] destinationArray,
Tuple<int, int> sampleSubsetRange,
RandomNumberGenerator randomNumberGenerator,
DoubleMatrix parameter,
int sampleSize
)
Protected Overrides Sub PartialSample (
destinationArray As Double(),
sampleSubsetRange As Tuple(Of Integer, Integer),
randomNumberGenerator As RandomNumberGenerator,
parameter As DoubleMatrix,
sampleSize As Integer
)
protected:
virtual void PartialSample(
array<double>^ destinationArray,
Tuple<int, int>^ sampleSubsetRange,
RandomNumberGenerator^ randomNumberGenerator,
DoubleMatrix^ parameter,
int sampleSize
) override
abstract PartialSample :
destinationArray : float[] *
sampleSubsetRange : Tuple<int, int> *
randomNumberGenerator : RandomNumberGenerator *
parameter : DoubleMatrix *
sampleSize : int -> unit
override PartialSample :
destinationArray : float[] *
sampleSubsetRange : Tuple<int, int> *
randomNumberGenerator : RandomNumberGenerator *
parameter : DoubleMatrix *
sampleSize : int -> unit
Parameters
- destinationArray
- Type: SystemDouble
The destination array that
receives the overall sampled data.
- sampleSubsetRange
- Type: SystemTupleInt32, Int32
The range specifying the subset of sampled points to draw.
- randomNumberGenerator
- Type: Novacta.AnalyticsRandomNumberGenerator
The random number generator exploited to sample.
- parameter
- Type: Novacta.AnalyticsDoubleMatrix
The parameter characterizing the probability distribution
from which the sample subset must be drawn.
- sampleSize
- Type: SystemInt32
The overall sample size.
Remarks
This method has been implemented to support
the optimization of functions whose arguments
are partitions.
See Also