You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with an implementation of sound transducer, and I am using the Radio class as base.
I have modified the time resolution and I have found that the noise computation doesn't work if the time resolution is smaller than 1e-12.
The reason is this method "bool Radio::isListeningPossible() ", specifically here:
const IListening *listening = receiver->createListening(this, now, now + 1E-12, position, position);
With resolutions smaller than 1e-12 the isotropic noise computation is infinite because now = now + 1E-12.
I am working with an implementation of sound transducer, and I am using the Radio class as base.
I have modified the time resolution and I have found that the noise computation doesn't work if the time resolution is smaller than 1e-12.
The reason is this method "bool Radio::isListeningPossible() ", specifically here:
const IListening *listening = receiver->createListening(this, now, now + 1E-12, position, position);
With resolutions smaller than 1e-12 the isotropic noise computation is infinite because now = now + 1E-12.
I have solved this problem with this code
double delta = 1E-12;
double exponent = now.getScaleExp();
if (exponent > -12)
delta = std::pow(10.0, exponent);
const IListening *listening = receiver->createListening(this, now, now + delta, position, position);
The text was updated successfully, but these errors were encountered: