-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ab43c0
commit 764dfe7
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
cubic_spline_2d.py | ||
Author: Shisato Yano | ||
""" | ||
|
||
import numpy as np | ||
|
||
from cubic_spline import CubicSpline | ||
|
||
|
||
class CubicSpline2D: | ||
""" | ||
2D Cubic Spline class | ||
Each section between two points are approximated as the following equation | ||
y_i = a_i + b_i * (x - x_i) + c_i * (x - x_i)^2 + d_i * (x - x_i)^3 | ||
""" | ||
|
||
def __init__(self, x_points, y_points): | ||
print(x_points) | ||
print(y_points) |