1,219
questions
1
vote
0
answers
41
views
Singular matrix during B Spline interpolation
According to the literature about B Splines, including Wolfram Mathworld, the condition for Cox de Boor's recursive function states that:
In python, this would translate to:
if (d_ == 0):
if ( ...
0
votes
2
answers
63
views
Unstable attempt at mean-preserving quadratic interpolation
I've been looking for an efficient mean-preserving calculation for quadratic interpolation. It doesn't seem to exist. So I tried a bare-bones basic system of linear equations in python and it's ...
0
votes
0
answers
27
views
SwiftUI Spline 3d model inside of ScrollView
I'm a beginner to Swift and SwiftUI and I am building a side-project. I am attempting to load an interactive 3d model (fetching from Spline Cloud link) into a ScrollView, but the gestures with the 3d ...
0
votes
1
answer
19
views
How to resample spline at predetermined x positions for non-monotonic curve
This outstanding example provides an option to create a spline for a non-monotonic curve : Cubic spline for non-monotonic data (not a 1d function)
However, I now need another step - to obtain y-values ...
0
votes
0
answers
34
views
Calculating estimated HR and Confidence Interval from coxph object with time-dependent coefficient and splines
How can I calculate hazard ratios (HRs) and confidence intervals at specific time points for a Cox PH model with a time-dependent coefficient and splines?
This is similar to the previous question ...
0
votes
0
answers
22
views
Marginal effects for tensor products
I am new to tensor products and understand what it is doing or so I think. How does one plot the marginal effect when using te or t2? Is it possible to extract it or do I have to specify a ANOVA type ...
0
votes
0
answers
23
views
Implementing regularization in a least squares problem for B-splines
For fitting a B-spline curve to a set of data points, most code utilise the following function : torch.linalg.lstsq to solve the least squares minimization problem.
I am wondering wether I could ...
0
votes
0
answers
20
views
Splines smoothing. Unity spline package
So I'm creating a script that generates splines for car trajectories by using points I placed on prefabs and Unity built-in splines package.
I ran into a problem that using AutoSmooth function makes ...
2
votes
1
answer
35
views
Generate predictions for GAM (mgcv) using penalised cubic spline forced through a certain point
I am using MGCV to generate predictions for a GAM using a cubic spline forced through a certain point. I have generated the gam exactly as outlined in this post: https://stat.ethz.ch/pipermail/r-help/...
0
votes
0
answers
19
views
Total least square cubic splines
I am interested in the non-monotonic relationship between two variables.
For this, I used cubic splines in R (mgcv::gam). However, I am not interested in predicting y using x. Rather, I want to ...
0
votes
1
answer
40
views
Dealing with NaN using Cubic Spline from Scipy
I am attempting to use cubic spline interpolation for a data set (as shown). CubicSpline function requires all numbers to be finite, how can I use it to fill in each NaN value using interpolation?
df =...
1
vote
1
answer
46
views
Associating B-Spline Coefficients to Control Points
From the seminal paper by Hughes I learnt that any B-Spline curve (or surface) can be described by a linear combination of B-Spline basis and control points, i.e.
C(x) = \sum_{i=1}^n N_{i,p} B_i
...
0
votes
0
answers
25
views
Using GAMLSS modeling with p-splines in dredge
I have a GAMLSS model in which I have a formula as such: "y ~ pb(age, by=c(sex, dataset))"
When I use dredge it doesn't "try", for example, "y ~ pb(age, by=sex)". That is ...
0
votes
1
answer
52
views
Cubic spline interpolation in Python - why is it not working?
I would like to apply a 2nd order low-pass Butterworth filter on my data, and then use cubic spline interpolation for resampling at every 1 meter in Python.
I tried to prevent having non-finite values ...
0
votes
1
answer
18
views
Graphviz bigger arrowheads can look awkward
I'm making a fairly complex, large graph with Graphviz, so i had to increase the arrowhead size to 2. Otherwise they would be nearly invisible when viewing the whole.
This means that sometimes ...
0
votes
0
answers
46
views
Asynchronous CPU-Bounded task PYTHON
I have a class "FXvolatility" which can interpolate some value based on two inputs (float, datetime) via this following method:
async def interpolate_volatility_async(self, udl:str, expiry:...
1
vote
0
answers
37
views
How to forecast from fable::TSLM with nonstandard specials?
I am trying to forecast time series with a model containing natural spline trend - by tidyverts package system in R.
Since fable package supports only linear splines (through one of its exogenous ...
0
votes
1
answer
75
views
Gatsby build fails when using spline
I am using spline in a React project and am using Gatsby to create static pages of this project.
When I run Gatsby develop locally everything works fine and my spline project is showing on the page.
...
1
vote
0
answers
45
views
Weird behavior of a spline -Unity 3D
Hello I am using https://github.com/CMDRSpirit/RollercoasterDesigner this package to make my one roller coaster. Sadly it is not very polished but I have one problem with it. When I set the StartSlope ...
0
votes
2
answers
64
views
How to compute the derivative of a spline in scipy, including the edges
I'm having trouble with the derivative of spline computed with LSQUnivariateSpine. Specifically that it is generating garbage at the edges.... My example is a bit wierd because I want to specify the ...
0
votes
0
answers
31
views
Python Implementation: Mountain Profile with Spline, Parametric Curve, and Bezier Curve
I have a project to implement in Python where I have to choose a mountain and implement one third of the code with spline, another third with parametric curve, and the last third with Bezier curve. ...
-3
votes
1
answer
104
views
Highly oscillatory cubic spline interpolation for apparently smooth data [closed]
I tried all the different interpolation kinds of interp1d of scipy.
It seems linear and slinear are the best, but they are obviously rough linear approximations and I need something smooth. I tried ...
1
vote
2
answers
356
views
Embedding Spline design into React
I keep getting this error:
Cannot read properties of undefined (reading 'A')
TypeError: Cannot read properties of undefined (reading 'A')
at ue (http://localhost:3000/static/js/bundle.js:49456:19)
...
4
votes
2
answers
131
views
Generating a clamped B-Spline
I am trying to display a clamped B-Spline curve. ( That is, one where the curve starts on the first control point and ends on last control point )
Here is the input:
Control points
xcp = {
...
0
votes
0
answers
44
views
Browser context menu not accessible over Spline component in Next.js
Inside my Next.js app, i added a Spline component like so
const Blob: React.FC<BlobProps> = ({ setIsBlobLoading }) => {
const scene = "https://prod.spline.design/0Fktb5VBB3QzS3Aw/...
3
votes
0
answers
93
views
Interacting Programmatically with a Spline 3D Scene in SwiftUI (iOS)
I'm new to the Spline 3D framework and I'm wondering if it's possible to interact programmatically with a Spline 3D scene in a SwiftUI environment on iOS. Specifically, I would like to:
Change the ...
0
votes
0
answers
20
views
Approximate 2D noisy point cloud with area-constrained closed B-splines
Use a closed cubic B-spline to approximate noisy 2D data points that are nearly circularly distributed. The area enclosed by the reconstructed B-spline should be constrained to remain constant.
How to ...
0
votes
1
answer
39
views
Can you add and/or multiply splines as new splines in SciPy?
I am using Scipy to construct cubic splines, and I need to add and multiply the outputs of the CubicSpline objects. I am wondering whether it is possible to create new splines that give the added and ...
2
votes
2
answers
169
views
Fixing boundary values on a spline?
I have data x and y which are noisy evaluations of a function f:[0,alpha] -> [0,1]. I know very little about my function except that f(0) = 0 and f(alpha) = 1.
Is there any way to enforce these ...
0
votes
2
answers
65
views
ModuleNotFoundError: No module named 'bspline'
Even though i definitely have installed bspline, i can not import it.
I both tried it in Pycharm with different interpreters and in Jupiter through anaconda.
`!pip install bspline
import bspline
...
0
votes
0
answers
36
views
Editing points of a USplineComponent component in the editor does not trigger the OnConstruction event in the owner actor for UE 5.4.1 version
Steps to Reproduce:
Create a C++ actor
Create a USplineComponent property
UPROPERTY(BlueprintReadOnly, Category = “SplineCraft”)
USplineComponent* SplineComponent;
2.1 Constructor & event ...
0
votes
0
answers
33
views
Using 2 spline paths at once
I'm working on a simple game, and one of the features that I want to have is cars driving across roads. I have been directed to use spline pathing.
The problem I have encountered is that I cannot have ...
0
votes
0
answers
27
views
returning the smaller value from splinefun (or GAM) prediction when multiple possibilities exist
Have a theoretical/processes based question so reprex is limited to the skeleton code provided with no actual DF as this is conceptual in nature.
I am interested in a.) what is returned for the ...
0
votes
0
answers
21
views
Cubic spline interpolation in GLTF [duplicate]
I am building a plugin for figma to record animations and later have embed them into GLTF, the GLTF documentation for cubic spline interpolation says we have three Values for a key frame.
The input ...
-1
votes
1
answer
60
views
How to represent a model fitted using spline transformer + linear regression in an mathematical equation. The data is high dimensional
I have a dataset consisting of 5 features and 1 target. I am using a spline transformer to transform the features and then fit it using linear regression. I am fitting the data with 1st degree and 5 ...
0
votes
0
answers
54
views
How to make a monotonically increasing smooth spline while specifying the number of knots and fixing endpoints of the spline?
I would like to fit a monotonically increasing smooth spline to monotonically increasing data while specifying the number of knots and giving start and endpoints.
This question (How to make monotonic (...
0
votes
0
answers
30
views
Blend two bezier curve using partitionof unity property while ensuring interpolation
I have two Bezier curve, say c1 and c2, these curves are interpolating the data points, while the given data points have some common points. i want to blend/merge them to a single curve while ensuring ...
0
votes
0
answers
47
views
How to generate a masked image in vtk
I am trying to create a mask on vtk in a particular shape sample image.
I managed to create the shape using lines nd splines. I want the mask to be created using the shape i created.
...
0
votes
0
answers
83
views
handling multiple scroll event in spline
i want to give multiple scroll event in spline, more precisely i have made and object which have three states first one in the center of the screen second one in the right and third one in the left of ...
2
votes
1
answer
174
views
change the direction of rotation of the object
I'm doing some experiments in Unity with Splines. I currently have a path made, and I go through the "Spline Animate" script and the object follows the path correctly. However, I would like ...
0
votes
0
answers
56
views
How to determine an unknown breakpoint in a linear regression model
[enter image description here][1]I am trying to figure out how to determine the breakpoint in a linear regression model. I have an example graph of what my series of data looks like and the ...
0
votes
0
answers
93
views
r ggpredict log transformed and linear spline
I've hit a roadblock in visualizing the outcome of a model that incorporates both 1) logarithmic transformation of a continuous variable and 2) integrating this transformed variable as a linear spline....
0
votes
1
answer
75
views
AutoCAD 2024 SPLINE command in SCR file
I want to load a script file in AutoCAD 2024, and in the file I'm telling it to write PLINE coords and SPLINE coords. My problem is that I need to change the SPLINE method to CV (it defaults to fit). ...
2
votes
0
answers
42
views
Get r (Radius) values at certain theta value for spline interpolation
I am trying to interpolate a closed spline through set of points I already have, I have gotten till here:
import numpy as np
from scipy import interpolate
# Set of points I want the closed spline to ...
0
votes
0
answers
58
views
React and Spline displaying scene in different screen view
I'm building a website using React+Spline 3D and I'm having problems in displaying my Spline Scene in different screen size (mobile, tablet, etc). I can use Spline's Screen Resize from events but I ...
1
vote
1
answer
237
views
Interpolate eigen splines with derivatives
I'm trying to interpolate a cubic spline with start&end derivative prescribed.
For that I created a wrapper for Eigen splines:
/**
* Cubic Spline.
* @tparam vec_t point type. Example: Eigen::...
1
vote
0
answers
97
views
how to add spline in your next js project since I am have difficulty
this is the code
This is the screen it should the animation on
This is the animation I made in Spline
I tried it as the youtube instructed but got no luck and didnt found any solid lead on the ...
1
vote
1
answer
30
views
Bidimensional splines, strictly increasing in one argument
I am working in R. I want to specify flexibly a function q(X,Y) where q is strictly increasing with respect to X (but not necessarily with respect to Y).
I want to use bidimensional splines but I don'...
0
votes
1
answer
42
views
Spline in R terms and wording - degree of the polynom - degree of freedom - degree of continuity - basisspline
I am creating a spline in R with the following function:
spline_model <- lm(sales ~ bs(data_clean$visits, df = 3, knots = 3)+ data_clean$discount -1, data = data_clean)
But I am bit confused with ...
1
vote
1
answer
143
views
Cubic spline coefficients from Scipy Interpolate
I'm trying to get the coefficient of cubic spline poly from scipy interpolate Cubic Spline with the point (0,0),(1,1), (2,0). The coefficients I got are different from the values from site: https://...