Giter VIP home page Giter VIP logo

Comments (5)

hagenw avatar hagenw commented on June 16, 2024

I have applied your proposed change from eps to 0 for a pint source (L124) in the branch fix_ssd_selection. If I run your example the output looks identical to me.

from sfs-matlab.

hagenw avatar hagenw commented on June 16, 2024

As I understood it this is the crucial part why this bug happens: "two secondary sources are exactly on this bound", correct?
I can reproduce the behavior for -eps, do you know why this is working and can we somehow become independent of the sign?

from sfs-matlab.

fietew avatar fietew commented on June 16, 2024

I understood the eps as the maximum value, which may be added or substracted to the true result of an arithmetic operation due to numerical noise, i.e. finite numerical resolution. Assuming the true value of the scalar product is 0, its calculated value might be between +eps and -eps. I guess choosing -eps for comparison is the conversative approach, as all sources are selected, where the scalar product yields greater-equal -eps. However, there might be a source, where the true is smaller than 0 and which are selected erroneously due to this selection criterion.

from sfs-matlab.

hagenw avatar hagenw commented on June 16, 2024

I think you are right and it is more conservative to use a negative value. I tested the same for ls as source and added now -2*eps as the criterium as for ls -eps was not enough.

from sfs-matlab.

hagenw avatar hagenw commented on June 16, 2024

Btw, for focused sources and plane wave there was no error with your loudspeaker array, so I didn't changed the selection criterium.

from sfs-matlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.