EXNN.Sensor

Sensor server metamodule to be used within your implementation

Modules using EXNN.Sensor are turned into Sensor servers.

Sensor modules MUST implement either a sense/2 function emitting a tuple containing scalar impulses of length compatible with the configured dimension, or a sync/2 function which returns sensor. Both functions take (sensor, {origin, :sync}) as arguments.

A sensor has a forward(sensor, value) function available. In case we want to change a sensor’s state during sync, we can override a before_synch(state) function in case we don’t overridde the sync function.

They share the underlying genome as state, which can be merged with custom attributes and default values passign a state option to the use macro.

A sensor receives or propagates a signal from the outside world and broadcasts it to the neuron of the front layer.

State Attributes