Giter Club home page Giter Club logo

Comments (3)

lauri-codes avatar lauri-codes commented on May 28, 2024 1

Yes.

from dscribe.

lauri-codes avatar lauri-codes commented on May 28, 2024

Hi @sirmarcel,

In short: this behaviour you are seeing is intentional and is related to the way the discretization of the Gaussians behaves when using very low number of discretization points (in your case n=3). As soon as you crank up the number of points you will see that this "effect" disappears. See below if interested.

Longer version: To calculate the value of the discretized Gaussians, dscribe uses the cumulative distribution function of a normal distribution: CDF(x). The value at a grid point x is calculated by calculating using a simple finite difference: MBTR(x) = (CDF(x+dx/2) - CDF(x-dx/2) )/dx. By using this approach the normalization of the Gaussians is ensured even with a very low number of discretization points (as seen in your case, where the area under the three points always sums up to 1 as intended). If the implementation would directly use the Gaussian probability distribution, the area under the Gaussians would slightly depend on their location when using small number of discretization points. I wanted to avoid this and thus chose the described option. Both approaches converge to the same result when n is reasonably large.

Good question, hope this clears things up!

from dscribe.

sirmarcel avatar sirmarcel commented on May 28, 2024

Hi @lauri-codes,

Thanks for the prompt and in-depth reply! I think I understand your approach, and the observed "weirdness" is due to a combination of a) very low sigma and b) low n, right?

from dscribe.

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.