Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multiplicative noise #62

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Use multiplicative noise #62

wants to merge 5 commits into from

Conversation

josephmckinsey
Copy link
Contributor

@josephmckinsey josephmckinsey commented Feb 28, 2024

Removes gaussian_variance and random_percent inputs.

Adds

  • additive_noise_stddev: zero-mean Gaussian noise added to the input.
  • multiplicative_noise_stddev: zero-mean Gaussian noise which scales with the input.

Formula used is just $(1 + \epsilon_{mult}) X + \epsilon_{add}$. Hopefully this is clear from the transform function.

Copy link
Collaborator

@AadilLatif AadilLatif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephmckinsey unless I am mistaken, some json files need to be updated to comply with your new implementation

measuring_federate/measuring_federate.py Show resolved Hide resolved
@@ -54,7 +60,7 @@
"name": "sensor_voltage_magnitude",
"type": "MeasurementComponent",
"parameters": {
"gaussian_variance": 0.0,
"additive_noise_stddev": 0.0,
"random_percent": 0.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be "multiplicative_noise_stddev" instead?

@@ -63,7 +69,7 @@
"name": "sensor_power_real",
"type": "MeasurementComponent",
"parameters": {
"gaussian_variance": 0.0,
"additive_noise_stddev": 0.0,
"random_percent": 0.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be "multiplicative_noise_stddev" instead?

@@ -54,7 +60,7 @@
"name": "sensor_voltage_magnitude",
"type": "MeasurementComponent",
"parameters": {
"gaussian_variance": 0.0,
"additive_noise_stddev": 0.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same issue as above

@@ -53,7 +59,7 @@
"name": "sensor_voltage_magnitude",
"type": "MeasurementComponent",
"parameters": {
"gaussian_variance": 0.0,
"additive_noise_stddev": 0.0,
"random_percent": 0.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same issue as above

@AadilLatif AadilLatif marked this pull request as draft May 3, 2024 15:35
@AadilLatif AadilLatif marked this pull request as ready for review May 3, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants