1,633 questions
Advice
0
votes
0
replies
19
views
How to force rms::redun to treat spline interaction terms as a single chunk?
I am performing a redundancy analysis using rms::redun() in R. My model includes an interaction between a binary treatment variable and a restricted cubic spline of a continuous variable: treatment * ...
0
votes
0
answers
111
views
Restricted cubic splines with R RMS package and multiple imputation from MICE
I am trying to create a restricted cubic splines plot with the R RMS package and imputed data from the R MICE package.
I could not find information on how to combine the different imputations from ...
0
votes
1
answer
61
views
How to compute the smoothed curve defined by gml:CubicSpline in a WAFS SIGWX Forecast?
I'm studying the gml:CubicSpline smoothing algorithm used in the IWXXM WAFS SIGWX Forecast, based on the WAFS-Example.xml sample.
For example, consider the following GML curve:
enter code here
<...
2
votes
1
answer
107
views
Is there a clean pythonic way of querying multiple points on a bivariate spline in the B-spline basis? [closed]
I need to efficiently evaluate a bivariate spline on a B-spline basis. I have already calculated the knot positions and spline coefficients (independently of scipy classes/methods such as ...
3
votes
1
answer
85
views
R. Contrasting predicted means in R survey package with splines
In the R "survey" package the svyglm() function can be used with svypredmeans() and svycontrast() in order to compare predictive marginal means for a generalised linear model. This works ...
0
votes
2
answers
146
views
Is it possible to apply a condition to Spline Interpolation? [closed]
I have a dataframe with a lot of missing values, and my data follows a pattern., Here's a week of my data with missing values:
I did spline interpolation to fit my data. My problem is that all of my ...
0
votes
0
answers
91
views
How do I import spline scene with animations and interactions to my React website using React Three Fiber (R3F)?
I have this script that I have written in react-three-fibre, as my overall website is in Three.js:
import useSpline from '@splinetool/r3f-spline';
import { OrthographicCamera } from '@react-three/drei'...
3
votes
1
answer
134
views
How can I set "cr" as the default basis type in mgcv::gam instead of "tp"?
I'm using the mgcv package in R to build generalized additive models (GAMs), and I often use cubic regression splines (cr) instead of the default thin plate regression splines (tp) (mainly because cr ...
2
votes
1
answer
191
views
Creating a specific B-spline basis matrix
Suppose I have data x = (x_1,...,x_n). I would like to create a basis matrix in R whose (i,j)th entry is B_j(x_i) - B_j(0), where B_j(.) is the jth cubic B-spline basis function. Is this possible to ...
0
votes
0
answers
46
views
Reading .dxf file to plot spline
A consult, I have a file .dxf with one spline, the spline data indicate the Degree of the curve, number of knots, number of control points, value of control points, etc. My doubt is how can I use such ...
1
vote
0
answers
48
views
Cubic Spline Interpolation for given data not matching with target data
Data:
data = pd.Series({
'2005-01': 14.80,
'2005-02': np.nan,
'2005-03': np.nan,
'2005-04': 14.83,
'2005-05': np.nan,
'2005-06': np.nan,
'2005-07': 15.14,
'2005-08': np....
0
votes
1
answer
395
views
How to remove background and disable zoom in react-spline?
I'm new to react-spline and I'm trying to achieve two things with my 3D scene:
Remove the transparent/white background that comes by default
Disable the ability to zoom/move the scene with mouse/...
3
votes
1
answer
242
views
Batch make_smoothing_spline in scipy
In scipy, the function scipy.interpolate.make_interp_spline() can be batched since its x argument must be one-dimensional with shape (m,) and its y argument can have shape (m, ...).
However, the ...
0
votes
1
answer
148
views
Why does cubic spline algorithm produce spiky and incorrect graph on a parametric curve?
I recently implemented my implementation of the cubic spline algorithm described on wikipedia. Here is my current implementation which should calculate the coefficients:
def ...
-1
votes
1
answer
55
views
Unity: succesfully create a mesh from player input as custom indicator
I'm hitting my head against the wall here-->
Task: for my little project (isometric with tilted camera), i would like to let the player create a custom area of effect for his ability, meaning, ...