Trying to find out when a curve becomes exponential
2 次查看(过去 30 天)
显示 更早的评论
Greetings,
I have a dataset from simulations of curves which I want to find out when this curve becomes exponential or when its not.
I am using the fact that an exponential curve is liner in a semi-log plot. So, I plot the curve as log(y)-x, determine the R2 using polyfit...but thats the problem. When can you say that the curve is not linear anymore?
I have values that are for example, R2 =
0.9997
1.0000
0.9989
0.9956
0.9346
0.9572
I just don't know based on this how to determine when the log(y)-x curve stops being linear so that the y-x plot is exponential.
Any good idea of how you can determine this in MATLAB?
0 个评论
采纳的回答
Stephen23
2014-9-29
编辑:Stephen23
2014-9-29
"When can you say that the curve is not linear anymore?"
That depends entirely on the problem, your requirements, any knowledge of the underlying system, the tools that you use, their numerical precision, the output that you need, the level of accuracy that you require, the further processing that might occur, the arbitrary demands of your customers and a million other possible factors.
To visualize the curve transition, subset the data for all/many contiguous data subsets, fit the required curve type to each subset, and then plot the least squares residuals (this might be multidimensional). If there is a clear knee to this curve, then you can pick the subset range that gives the widest range of data with a small enough residual to satisfy your demands. If there is no knee, then your hypothesis is false.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!