Home
last modified time | relevance | path

Searched refs:molecule (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
Ddata_augmentation.py29 def time_wrapping(molecule, denominator, data): argument
33 for j in range((int(len(data) / molecule) - 1) * denominator)]
34 for i in range(int(len(data) / molecule) - 1):
38 k][j] = (data[molecule * i + k][j] * (denominator - k) +
39 data[molecule * i + k + 1][j] * k) / denominator
66 for molecule, denominator in fractions:
67 new_data.append(time_wrapping(molecule, denominator, data))
70 for molecule, denominator in fractions:
72 (np.array(data, dtype=np.float32) * molecule / denominator).tolist())