GithubHelp home page GithubHelp logo

Comments (2)

rstebbing avatar rstebbing commented on June 26, 2024

Hi @rsbandaru,

Apologies for the delayed response! Just to clarify, what do you mean by "missing"? With regards to README-2.png, for example, are you referring to the fact that, for the leftmost and rightmost input data points, the model has not extended far enough so that the error between the model and these data points is perpendicular?

from bspline-regression.

christianbrugger avatar christianbrugger commented on June 26, 2024

I think this is what is meant:

Cubic spline not clamped. This is how it is implemented:

image

Clamped cubic splines. Here the curve touches the first and last control point. This is usually how it is implemented in most application and also shown on Wikipedia.

image

The difference is the knots vector.

knots_unclamped = [0, 0.167, 0.333, 0.5, 0.667, 0.833, 1]
knots_clamped = [0, 0, 0, 0.5, 1, 1, 1]

Here is the website I took the screenshots from:

http://nurbscalculator.in/

I agree with rsbandaru that it would be good to have this feature.

I am not sure if this can easily be done, as I read you assume uniform knot spacing. In this case an alternative could be to add the first and last points multiple times (depending on the degree). However it seems to give a slightly different curve. And it would require some special casing in the optimizer, to treat them always the same.

from bspline-regression.

Related Issues (3)

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.