C# Class SharpNeat.Domains.BoxesVisualDiscrimination.TestCaseField

Represents test cases for the Boxes visual discrimination task. The test case field is fixed at a resolution of 11x11 the visual field of the agents being evaluated on the task can have a variable visual field resolution - the visual field pixels sample the 11x11 pixels in the test field.
ファイルを表示 Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
GetPixel ( double x, double y ) : double

Gets the value of the pixel at a position in the 'real/sensor' coordinate space (continuous x and y, -1 to 1).

InitTestCase ( int largeBoxRelativePos ) : IntPoint

(Re)initialize with a fresh test case. Returns the target point (center of large box).

TestCaseField ( ) : Redzen.Numerics

Default constructor.

Private Methods

Method Description
GenerateRandomTestCase ( int largeBoxRelativePos ) : IntPoint[]

Method Details

GetPixel() public method

Gets the value of the pixel at a position in the 'real/sensor' coordinate space (continuous x and y, -1 to 1).
public GetPixel ( double x, double y ) : double
x double
y double
return double

InitTestCase() public method

(Re)initialize with a fresh test case. Returns the target point (center of large box).
public InitTestCase ( int largeBoxRelativePos ) : IntPoint
largeBoxRelativePos int
return IntPoint

TestCaseField() public method

Default constructor.
public TestCaseField ( ) : Redzen.Numerics
return Redzen.Numerics