spline Questions
14
For a drawing application, I'm saving the mouse movement coordinates to an array then drawing them with lineTo. The resulting line is not smooth. How can I produce a single curve between all the ga...
Headley asked 14/8, 2011 at 0:52
3
Solved
AutoCAD allows to store SPLINE entities in the DXF files defined only by
fit points, the problem is, that such a spline definition has infinite
numerical correct solutions and Autodesk does not pro...
2
Solved
I would like to fit my data using spline(y~x) but all of the examples that I can find use a spline with smoothing, e.g. lm(y~ns(x), df=_).
I want to use spline() specifically because I am using t...
8
Solved
I have two lists to describe the function y(x):
x = [0,1,2,3,4,5]
y = [12,14,22,39,58,77]
I would like to perform cubic spline interpolation so that given some value u in the domain of x, e.g.
...
Amphetamine asked 21/7, 2015 at 15:44
1
I'm trying to fit a smooth spline to what looks like data with two peaks. First, I fit a smooth spline to my data to identify the potential position of the knots.
library(npreg)
library(splines)
li...
Explication asked 22/6, 2022 at 15:41
3
Solved
From this site, which seems to have the most detailed information about Catmull-Rom splines, it seems that four points are needed to create the spline. However, it does not mention how the points p...
2
I'm using graphviz (dot) to generate an undirected multigraph where a lot of the edges are overlapping with nodes and I also have to parallel edges (2 nodes with multiple edges).
I tried to use spl...
Edan asked 18/5, 2022 at 14:39
1
Solved
I need to use the "not-a-knot" cubic spline for interpolation in my R scripts.
Although there are some R packages for splines, none of them seem to consider the "not-a-knot" typ...
Loganloganberry asked 10/5, 2022 at 7:56
1
Solved
I would like to create a spline curve between the blue point and the green point with the red point as a control point.
Graphviz documentation says :
splines attribute, of type bool or string, is ...
2
Forgive me for the long code example, but I couldn't figure out how to properly explain my question with any less code:
let c = document.querySelector("canvas");
let ctx = c.getContext("2d");
...
Benne asked 5/11, 2021 at 16:45
1
I am trying to calculate where points are on a bezier curve, and I'm using the standard formula for doing so. That is:
x = (1 - t) * (1 - t) * x1 + 2 * (1 - t) * t * cpX + t * t * x2;
y = (1 - t) *...
Balcke asked 4/11, 2021 at 23:59
6
Solved
8
Solved
I'd like to implement a Bézier curve. How should I go about creating a quadratic curve?
void printQuadCurve(float delta, Vector2f p0, Vector2f p1, Vector2f p2);
Clearly we'd need to use linear int...
Sevigny asked 24/4, 2009 at 9:12
4
Solved
I have a complicated curve defined as a set of points in a table like so (the full table is here):
# x y
1.0577 12.0914
1.0501 11.9946
1.0465 11.9338
...
If I plot this table with the commands:
...
Jamnis asked 30/9, 2013 at 19:6
2
Solved
I am trying to plot points + smooth line using spline. But the line "overshoots" some points, e.g in following codes, over the point 0.85.
import numpy as np
import matplotlib.pyplot as plt
from...
Thrum asked 18/11, 2017 at 1:35
1
Objective
I have a 3D facet model (e.g. .off file) which can for example look like a pipe/tube (see example picture). The goal is to derive an approximate spline (best case combination of lines and...
3
Solved
I wrote the following code to perform a spline interpolation:
import numpy as np
import scipy as sp
x1 = [1., 0.88, 0.67, 0.50, 0.35, 0.27, 0.18, 0.11, 0.08, 0.04, 0.04, 0.02]
y1 = [0., 13.99, 27...
Seiber asked 7/8, 2012 at 18:18
2
Solved
I am try to use the Eigen library to create splines. However once I create a spline, I don't know how to get what the value would be at a given point x.
See example below with explanations of my i...
5
I am trying to find a python package that would give an option to fit natural smoothing splines with user selectable smoothing factor. Is there an implementation for that? If not, how would you use...
Yelenayelich asked 13/7, 2018 at 8:41
1
I am preparing some code to interpolate a serie of points with splines.
There are many kinds of splines: quadratic, cubic, many boundary conditions...
So far I have tried the most popular ones: c...
1
Solved
Here is the spline without constraints:
from geomdl import fitting
from geomdl.visualization import VisMPL
path = [(2077.0, 712.0, 1136.6176470588234), (2077.0004154771536, 974.630482962754, 1313....
Gristly asked 8/5, 2020 at 7:55
4
I was using one of the proposed algorithms out there but the results are very bad.
I implemented the wiki algorithm
in Java (code below). x(0) is points.get(0), y(0) is values[points.get(0)], α ...
Wallaby asked 30/11, 2013 at 17:13
3
Solved
I want to use the natural cubic smoothing splines smooth.spline from R in Python (like som many others want as well (Python natural smoothing splines, Is there a Python equivalent to the smooth.spl...
2
I am porting a script written in R over to Python. In R I am using smooth.spline and in Python I am using SciPy UnivariateSpline. They don't produce the same results (even though they are both base...
1
Solved
I am trying to add a tangent to my plot at the point x = 30 and I want to calculate the x-intersection of the tangent at y = 0.08.
I already found a very useful example, which I tried to use, but...
Adenaadenauer asked 6/6, 2019 at 18:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.