You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r =range(0.5-1/ (length(x) *2-2), 0.5+1/ (length(x) *2-2), length = k)
15
15
returnit.(r)
16
16
17
17
end
18
-
functionrolling_interp(x; times =5, winsize =4, kwargs...)
18
+
19
+
"""
20
+
21
+
Interpolates in 1D or 2D using BSplineOrder(order=4) the x/y path.
22
+
23
+
# arguments
24
+
x: Vector of Numeric, or vector of Point2f
25
+
[y: if x/y pairs are provided, will call the function on both axes individually]
26
+
27
+
# keyword
28
+
`winsize=4`: Over how many samples the interpolation function should run. For order =4, needs to be at least 4. For higher orders you need to increase this - you might get better interpolation by raising this, but i'm not sure.
29
+
`subsample=5`: How many points to evaluate the spline on, effectively how many intermediate points to return.
30
+
`order=4` the order of the BSPline. 4 is default, 2 is linear.
0 commit comments