コンテンツにスキップ

sensorutils.augmentation

jitter(x, sigma=0.05)

jittering

Parameters:

Name Type Description Default
x ndarray

sensor data

expected shape: (num_channels, length_of_sequence)

required
sigma float

Noise scale

0.05

Returns:

Type Description
ndarray

sensor data with jitter.


scaling(x, sigma=0.1)

scaling

Parameters:

Name Type Description Default
x ndarray

sensor data

expected shape: (num_channels, length_of_sequence)

required
sigma float

Standard deviation. Non-negative.

0.1

Returns:

Type Description
ndarray

scaled sensor data


swapping(x)

swapping

Parameters:

Name Type Description Default
x ndarray

sensor data

expected shape: (num_channels, length_of_sequence)

required

Returns:

Type Description
ndarray

sensor data with randomly swapped axes


flipping(x, overall=True)

flipping

Parameters:

Name Type Description Default
x ndarray

sensor data

expected shape: (num_channels, length_of_sequence)

required
overall bool

flag whether all axes should be flipped together.

True

Returns:

Type Description
ndarray

random flipped sensor data


reversing(x)

reversing

Parameters:

Name Type Description Default
x ndarray

sensor data

expected shape: (num_channels, length_of_sequence)

required

Returns:

Type Description
ndarray

reversed sensor data