Data set and Python language for curve fitting the elliptical shape
收藏NIAID Data Ecosystem2026-05-01 收录
下载链接:
https://data.mendeley.com/datasets/c83yb2fgmr
下载链接
链接失效反馈官方服务:
资源简介:
This data set contains the digitization of bamboo culm's and log's circumference that resemble an ellipse and a circle. The data was adjusted, transformed into polar coordinates, and curve fitted using non linear regression. The Phyton coding to curve this ellipse are also generated.
In this version we revised the Phyton code:
# calculate r_estimate using the curve model
def r_estimate(row):
numer = estimate["R"] * ((estimate["a"] ** 2 - estimate["b"] ** 2) * np.sin(row["theta"] + estimate["k"] * np.pi) * np.sin(estimate["T"] + estimate["k"] * np.pi) + estimate["b"] ** 2 * np.cos(row["theta"] - estimate["T"])) + estimate["a"] * estimate["b"] * \
((estimate["a"] ** 2 - estimate["b"] ** 2) * (np.sin(row["theta"] + estimate["k"] * np.pi) ** 2) + estimate["b"] ** 2 - estimate["R"] ** 2 * (np.sin(row["theta"] - estimate["T"]) ** 2)) ** 0.5
denom = (estimate["a"] ** 2 - estimate["b"] ** 2) * (np.sin(row["theta"] + estimate["k"] * np.pi) ** 2) + estimate["b"] ** 2
创建时间:
2023-08-25



