Giter Site home page Giter Site logo

Cutoff wavelength not working about bspline HOT 1 CLOSED

ncar avatar ncar commented on June 11, 2024
Cutoff wavelength not working

from bspline.

Comments (1)

garyjg avatar garyjg commented on June 11, 2024

The algorithm which tries to find a reasonable number of nodes for a given wavelength was starting out at 9 intervals, which was already larger than your dataset, so it failed. I have reduced it to 5, which works for your example, but I don't think there's any point in going lower. Too low and assertions will fail because the basis function needs to be evaluated across multiple nodes. I have also added some debug messages to the algorithm, to make it easier to get an explanation of what the algorithm is doing and why it is failing. There is already a test program in the source, Tests/C++/bspline, which you can use to test examples like this one. Just create a data file like the one attached, then run it like so:

bspline -i user8.txt -d -w 30

You will be able to see the debug messages, and you can also play with all the spline parameters to see how they affect the results, including the variance computed for all the Y values.

user8.txt

from bspline.

Related Issues (4)

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.