CrossEntropyProgramSample Method |
Namespace: Novacta.Analytics.Advanced
protected DoubleMatrix Sample( CrossEntropyContext context, int sampleSize, DoubleMatrix parameter )
Exception | Condition |
---|---|
ArgumentNullException | context is null. -or- parameter is null. |
ArgumentOutOfRangeException | sampleSize is not positive. |
ArgumentException | The dimensions of parameter do not match those of the InitialParameter of context. |
This method executes the sampling step of a Cross-Entropy program.
Method Sample returns a DoubleMatrix whose rows represent the generated sample points, while its NumberOfColumns is the StateDimension of the points in the specified context. This is equivalent to require that a state of the system under study must be representable by a row vector.