Ejemplo n.º 1
0
        public void TestCtor()
        {
            ISensor wrapped = new VectorSensor(4);
            ISensor sensor  = new StackingSensor(wrapped, 4);

            Assert.AreEqual("StackingSensor_size4_VectorSensor_size4", sensor.GetName());
            Assert.AreEqual(sensor.GetObservationShape(), new[] { 16 });
        }
Ejemplo n.º 2
0
        public void TestCtor()
        {
            ISensor wrapped = new VectorSensor(4);
            ISensor sensor  = new StackingSensor(wrapped, 4);

            Assert.AreEqual("StackingSensor_size4_VectorSensor_size4", sensor.GetName());
            Assert.AreEqual(sensor.GetObservationSpec().Shape, new InplaceArray <int>(16));
        }