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

Feature noise lf pulse #3

Merged
merged 6 commits into from
May 20, 2021
Merged

Feature noise lf pulse #3

merged 6 commits into from
May 20, 2021

Conversation

remi-kn
Copy link
Contributor

@remi-kn remi-kn commented May 20, 2021

No description provided.

Copy link
Contributor

@Simon-Stone Simon-Stone left a comment

Choose a reason for hiding this comment

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

Please make the minor changes and take a look at the changes in TdsModel, which I believe are not necessary.

LfPulse.cpp Outdated Show resolved Hide resolved
LfPulse.h Outdated Show resolved Hide resolved
TdsModel.h Outdated
@@ -297,6 +297,9 @@ class TdsModel
void getSectionFlow(int sectionIndex, double &inflow, double &outflow);
double getSectionPressure(int sectionIndex);

void calcNoiseSample(NoiseSource* s, double ampThreshold);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this need to be public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was to be able to use the noise source function already implemented, but it turns out that this function is too complex for what we need so I found it simpler to just generate random numbers.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great, then I'd say just make it private again.

TdsModel.h Outdated
@@ -297,6 +297,9 @@ class TdsModel
void getSectionFlow(int sectionIndex, double &inflow, double &outflow);
double getSectionPressure(int sectionIndex);

void calcNoiseSample(NoiseSource* s, double ampThreshold);
void incrementPosition() { position++; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this function needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as before, this was to use the noise function.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, so we can just remove it, then.

@remi-kn remi-kn closed this May 20, 2021
@Simon-Stone Simon-Stone reopened this May 20, 2021
@Simon-Stone Simon-Stone merged commit b71ec0b into main May 20, 2021
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.

2 participants