Click or drag to resize

CrossEntropyProgramEvaluatePerformances Method

Evaluates the performance of the points in the sample drawn in the current iteration.

Namespace:  Novacta.Analytics.Advanced
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
protected DoubleMatrix EvaluatePerformances(
	CrossEntropyContext context,
	DoubleMatrix sample
)

Parameters

context
Type: Novacta.Analytics.AdvancedCrossEntropyContext
The context in which the method must be executed.
sample
Type: Novacta.AnalyticsDoubleMatrix
The sample drawn in the current iteration.

Return Value

Type: DoubleMatrix
The matrix containing the performances of the points in the current sample.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext is null.
-or-
sample is null.
ArgumentExceptionsample has a NumberOfColumns not matching the StateDimension of context.
Remarks

Method EvaluatePerformances(CrossEntropyContext, DoubleMatrix) takes the matrix returned by Sample as its second parameter, the sample matrix, while its first parameter is the context which defines the performance of a specified state, referred to as the performance function.

Since the sampled points are represented as the rows of the sample matrix, it is expected that the performance function will accept such rows as valid representations of a system's state.

The performances of the points are returned as a column vector.

See Also