Uniform Noise Addition
Uniform Noise Addition
Only for use with simulated data
This method is used only when training with simulated data.
Can be used to add uniform noise by using np.random.randint() between [-250,250] for x and y, and [0,1000] for z.
Bases: BaseEstimator, TransformerMixin
Adds uniform noise to the point cloud data in cartesian coordinates.
Parameters
ratio_noise : (float) Fraction of noise to length of point cloud to be produced
Returns
new_data: (array) Data with uniform noise added event_lengths: (array) New event lengths accounting for added noise points
Source code in scripts/ml_preprocessing_steps.py
transform(X, y=None)
Adding uniform noise in cartesian coordinates
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
tuple
|
Packed data and event lengths np.array |
required |
y
|
None
|
Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
tuple
|
Data with noise and new event lengths |