FractalDimension

class eyefeatures.features.measures.FractalDimension(m=2, tau=1, x=None, y=None, aoi=None, pk=None, return_df=True, ignore_errors=False)[source]

Bases: MeasureTransformer

Fractal Dimension.

Estimates the fractal dimension of the scanpath (or its embedding) using the Box-Counting method. It measures how the scanpath fills the space. A higher fractal dimension indicates a more complex, space-filling pattern.

Parameters:
  • m (int) – embedding dimension.

  • tau (int) – time delay for phase space reconstruction.

  • x (str) – X coordinate column name.

  • y (str) – Y coordinate column name.

  • aoi (str) – Area Of Interest column name(-s).

  • pk (list[str]) – primary key.

  • return_df (bool) – whether to return output as DataFrame or numpy array.

  • ignore_errors (bool) – If True, return NaN when feature computation fails; otherwise raise.