Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Mismatch between fitting curve and origin data

$
0
0

I want to plot my data but there are edges in the curve so I am trying to smooth it usingpolynomial (tried different degrees), spline, or exponential functions but there is a mismatch with the original data.

Here are the codes and plots:

Data

copper = np.array([0, 1, 2, 3, 4, 5, 7, 8, 10, 15])transmission = np.array([1.000, 0.269, 0.150, 0.097, 0.064, 0.046, 0.026, 0.020, 0.012, 0.003])

mismatching plotmismatch -exponential function code

Data

copper = np.array([0,1, 2, 3, 4, 5, 7, 8, 10, 15])transmission = np.array([1.000, 0.169, 0.077, 0.043, 0.025, 0.016, 0.011, 0.005, 0.003, 0.000])

the curve is unevenuneven-spline function

Thanks in advance


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>