CircleFeature

Contents

CircleFeature#

class braintools.cogtask.CircleFeature(num, limits=(0.0, 6.283185307179586), name=None)[source]#

Circular feature for angular/directional data.

Extends Feature with value range constraints, useful for encoding circular quantities like angles or directions.

Examples

>>> # Direction feature with range [0, 2*pi]
>>> direction = CircleFeature(8, limits=(0, 2*np.pi), name='direction')
Parameters:
  • num (int) – Number of dimensions for this feature.

  • limits (Tuple[Array | ndarray | bool | number | bool | int | float | complex | Quantity, Array | ndarray | bool | number | bool | int | float | complex | Quantity]) – (min, max) value range for the circular feature.

  • name (str) – Feature name.