Giter Site home page Giter Site logo

Adjustable distance prior about beast HOT 1 CLOSED

karllark avatar karllark commented on July 25, 2024
Adjustable distance prior

from beast.

Comments (1)

drvdputt avatar drvdputt commented on July 25, 2024

In case someone starts working on this, I want to bring up the following:

The beast has some code in grid_weights.py to deal with irregular grid spacings. E.g. for Z, the prior in bin-space is set equal to the the bin widths (based on the middles between the grid points in linear space). When summing over the grid, this corresponds to a flat prior in Z-space (sum becomes an integral)

When I implemented the distance parameter, I did not apply these weights to the distance (d), and so the weight is 1 for each bin, so the prior is flat in bin-space. So in d-space, we currently always have a 1/bin_width prior.

For a log-spaced distance grid this makes sense. If you do the math for this specific case, you can find that the bin width (however you calculate it) is a constant times the center value of the bin. So the prior is 1/d in d-space, which is flat in log(d)-space.

In any case, it would be better to just apply the same correction as for Z, and have a 1/d prior explicitly as an option.

from beast.

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.