Interpolate

Interpolate.

Contains the functions used in EEGrasp interpolate data

eegrasp.interpolate.interpolate_channel(missing_idx: int | list[int] | tuple[int], graph=None, data=None)[source]

Interpolate missing channel.

Parameters.

missing_idxint | list of int | tuple of int

Index of the missing channel. Not optional.

graphPyGSP2 Graph object | None

Graph to be used to interpolate a missing channel. If None, the function will use the graph computed in the instance of the class (self.graph). Default is None.

datandarray | None

2d array of channels by samples. If None, the function will use the data computed in the instance of the class (self.data). Default is None.

Returns:
reconstructedndarray

Reconstructed signal.