C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GenerateRandomTestCase ( int largeBoxRelativePos ) : IntPoint[]

Описание методов

GetPixel() публичный Метод

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
Результат double

InitTestCase() публичный Метод

(Re)initialize with a fresh test case. Returns the target point (center of large box).
public InitTestCase ( int largeBoxRelativePos ) : IntPoint
largeBoxRelativePos int
Результат IntPoint

TestCaseField() публичный Метод

Default constructor.
public TestCaseField ( ) : Redzen.Numerics
Результат Redzen.Numerics