|
Introduction
IntroductionThe purpose of NonLinearCurve2D is to allow an easy way for developers to extract a bezier curve from a series of two dimensional data points. DetailsA version of coincident regression analysis is implemented with a configurable amount of tolerable error. The output is a quadratic bezier curve along with the amount of error for the worst data point. The runcurve.jar runnable jar file has a GUI example to demonstrate the process. Run the demo with "java -jar runcurve.jar". Click in the window to determine data points that will be mapped. Any two points along the same y axis will be averaged together. Click the "draw" button to plot the curve. Click the "clear" button to start over again with a clear slate. A small green square will be plotted, if within the viewing area for the control point of the resulting curve. Here are some examples of generated curves using the graphical tool:
The source code has been tested on Java5 and later. Refer all bugs, complaints and aspersions to contact 'at' darklilac.com. |