pydtk.preprocesses package

Submodules

pydtk.preprocesses.downsampling module

Downsample preprocessing function.

class pydtk.preprocesses.downsampling.Downsample(target_frame_rate, mode='skipping')

Bases: pydtk.preprocesses.preprocess.BasePreprocess

Downsample processing.

processing(timestamps, values)

Downsample data into the target sampling rate.

Parameters
  • timestamps (ndarray) – timestamps [sec]

  • values (ndarray) – signal to downsample

Returns

timestamps [sec] downsampled_values (ndarray): signal to downsample

Return type

downsampled_timestamps (ndarray)

pydtk.preprocesses.passthrough module

Dummy preprocessing function.

class pydtk.preprocesses.passthrough.AddBias(bias)

Bases: pydtk.preprocesses.preprocess.BasePreprocess

Add bias processing.

processing(timestamps, values)

Add constant bias.

Parameters
  • () (timestamps) –

  • values (ndarray) – Signal sequence.

Return: Same as input.

class pydtk.preprocesses.passthrough.PassThrough

Bases: pydtk.preprocesses.preprocess.BasePreprocess

Pass through processing.

processing(timestamps, values)

No processing.

Parameters
  • () (timestamps) –

  • values (ndarray) – Signal sequence.

Return: Same as input.

pydtk.preprocesses.preprocess module

Base preprocess modules.

class pydtk.preprocesses.preprocess.BasePreprocess

Bases: object

Base Preprocess.

processing(timestamps, data)

Process signals.

Module contents