Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3593902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:38:22+00:00 2026-05-18T19:38:22+00:00

In order to specify some things first: The user should be able to create

  • 0

In order to specify some things first: The user should be able to create a graph by specifying 3 to 5 points on a 2D field.
The first and the last points are always at the bounds of that field (their position may only be changed in y direction – not x). The derivation of the graph at these positions should be 0.
The position of the 3rd and following points may be specified freely.
A graph should be interpolated, which goes through all the points. However, this graph should be as smooth and flat as possible. (please apologize for not being mathematically correct)

The important thing: I need to sample values of that graph afterwards and apply them to a discrete signal. Second thing: Within the range of the x-Axis the values of the function should not exceed the boundaries on the y-Axis.. In my pics that would be 0 and 1 on the y-Axis.
I created some pics to illustrate what I am talking about using 3 points.

Some thoughts I had:

  1. Use (cubic?) splines: their characteristics could be applied to form such curves without too many problems. However, as far as I know, they don’t relate to a global x-Axis. They are specified in relation to the next point, through a parameter usually called (s). Therefore it will be difficult to sample the values of the graph related to the x-Axis. Please correct me when I am wrong.
  2. create a matrix, which contains the points and the derivations at those points and solve that matrix using LU decomposition or something equivalent.

So far, I don’t have in depth understanding of these techniques, so I might miss some great technique or algorithm I haven’t known about yet.

There is one more thing, that would be great to be able to do: Being able to adjust the steepness of the curve via the change of one or a few parameters. I illustrated this by using a red and a black graph in some of my pictures.
Any ideas or hints how to solve that efficiently?

alt text
alt text
alt textalt text

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:38:23+00:00Added an answer on May 18, 2026 at 7:38 pm

    Do you understand how splines are arrived at?

    Summary of doing splines

    You break the range into pieces based on the control points (splitting at the control points or putting the breaks between them), and plop some parameterized function into each sub-range, then constrain the functions by the control points, artificially introduced end-point constraints, and inter-segment constrains.

    If you’ve counted your degrees of freedom and constraints right, you get a solvable system of equations which tells you the right parameters in terms of the control points and away you go.

    The result is a set of parameters for a piecewise function. Generally a piecewise continuous and differentiable function, because what would be the point otherwise.

    How you can use that in this case

    So consider making each interior point the center of a segment which will be occupied by a peak-like function (Gaussian on a linear background, maybe) and use the end points as constraints.

    For n total points you’d have D*(n-2) parameters if each segment has D parameters. You have four end-point constraints f(start)=y_0, f(end)=y_n, f'(start) = f'(end) = 0), and some set of match constraints between the segments:

    f_n(between n and n+1) = f_n+1(between n and n+1)
    f'_n(between n and n+1) = f'_n+1(between n and n+1)
    ...
    

    plus each segment is constrained by it’s relationship to the control point (usually either f(point n) = y_n or f'(point n) = 0 or both (but you get to decide).

    How many matching constraints you can have depends on the number of degrees of freedom (total number of constraints must equal total number of DoF, right?). You have have to introduce some extra endpoint constraints in the form f''(start) = 0 … to get it right.

    At that point you’re just looking at a lot of tedious algebra to earn how to translate this into a big system of linear equation which you can solve with a matrix inversion.

    Most numeric methods books will cover this stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can some one specify the windows API, one need to use in order to
In order to create the proper queries I need to be able to run
In order to create an arbitrary precision floating point / drop in replacement for
In order to fully use LinqToSql in an ASP.net 3.5 application, it is necessary
In order to perform a case-sensitive search/replace on a table in a SQL Server
In order to know how many times a pattern exists in current buffer, I
In order to debug an asp.net web app I have to have IE Script
In order to improve my open source project, I need testers. I have created
In order to verify the data coming from the Google Safe Browsing API ,
In order to improve performance reading from a file, I'm trying to read the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.