Skip to content

Commit 68fddcc

Browse files
fix Spline order (#183)
convention is different between DataInterpolations and BSplineKit
1 parent 70ab145 commit 68fddcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/model/Spline.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ julia> Spline.Linear()
4444
BSpline(2)
4545
```
4646
"""
47-
Linear() = BSpline(2)
47+
Linear() = BSpline(1)
4848

4949
"""
5050
Spline.Quadratic()
@@ -60,7 +60,7 @@ julia> Spline.Quadratic()
6060
BSpline(3)
6161
```
6262
"""
63-
Quadratic() = BSpline(3)
63+
Quadratic() = BSpline(2)
6464

6565
"""
6666
Spline.Cubic()
@@ -76,7 +76,7 @@ julia> Spline.Cubic()
7676
BSpline(4)
7777
```
7878
"""
79-
Cubic() = BSpline(4)
79+
Cubic() = BSpline(3)
8080

8181

8282
# used as the object which gets optmized before finally returning a completed spline

0 commit comments

Comments
 (0)