Giter Site home page Giter Site logo

Comments (3)

rjs3273 avatar rjs3273 commented on July 26, 2024

This is such a tough one. Certainly a polynomial option would be a great thing to offer. The problem is it is very instrument dependent. If you have a sensitivity that gradually rises, peaks and gradually falls then a polynomial is great. If you have a fairly flat response that plummets rapidly at the ends (like sprat) then polynomials can be poor. Sharp bends are terrible for polynomial too. But you are right, if the interpolation becomes unstable then the polynomial can be better. I have no proof of this, but my gut says the safest default may be very low order (linear?) interpolation function. Ultimately though my experience with every instrument is endless tinkering to really optimise and picking the right function is always a compromise, never quite ideal so there is not guaranteed best and safe answer.

from aspired.

cylammarco avatar cylammarco commented on July 26, 2024

Perhaps I should keep the interpolation method as the default but also provide a polynomial fit option. The add_sensitivity_itp(...) should change to calling a new function add_sensitivity(..., method='interpolation') where the method accepts 'interpolation', 'polynomial' or a callable function. Also need to add a new function add_sensitivity_poly(...).

from aspired.

cylammarco avatar cylammarco commented on July 26, 2024

Instead of having separate itp or poly, changed the sensitivity_itp to sensitivity_func that can hold either an interpolated function or a polynomial function. The default setting is still using interpolation because it is much more stable, I do not recommend using polynomial in an automated reduction unless the sensitivity is known to be well described by a low order polynomial.

from aspired.

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.