# helia_edge.layers.preprocessing.sine_wave

Fixed sinusoidal signal addition.

## helia_edge.layers.preprocessing.sine_wave.AddSineWave

`class` · `python`

```python
AddSineWave(
    sample_rate: float = 1,
    frequency: float = 100,
    amplitude: float = 0.1,
    data_format: str | None = None,
    **kwargs={},
)
```

Add a fixed sine wave in training and inference.



Base class: [BaseAugmentation1D](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation1D).

Inherited from [BaseAugmentation](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation): [augment_masks()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_masks), [augment_sample()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_sample), [augment_targets()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_targets), [batch_augment()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.batch_augment), [call()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.call), [get_random_transformations()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.get_random_transformations).

Source: `helia_edge/layers/preprocessing/sine_wave.py:10`

### helia_edge.layers.preprocessing.sine_wave.AddSineWave.training_only

`attribute` · `python`

```python
training_only = False
```

Source: `helia_edge/layers/preprocessing/sine_wave.py:14`

### helia_edge.layers.preprocessing.sine_wave.AddSineWave.augment_samples

`method` · `python`

```python
augment_samples(inputs)
```

Source: `helia_edge/layers/preprocessing/sine_wave.py:29`

### helia_edge.layers.preprocessing.sine_wave.AddSineWave.get_config

`method` · `python`

```python
get_config()
```

Source: `helia_edge/layers/preprocessing/sine_wave.py:37`
