Curve drawing in GHOST-80
At the Computer Centre at Leicester, the main graphics package was GHOST, and later its successor GHOST-80. I helped many users with their GHOST programs and helped to run the GHOST User Group established by the Director, David Fisher. After some searching, and help from my friend Professor David Duce, of Oxford Brookes, I have been able to borrow the Culham Laboratory GHOST-80 manual. There is an example program which demonstrates the two curve drawing routines, CURVEO and CURVEM. The former is rotationally invariant, the latter gives a single-valued curve from single-valued data. The manual does not specify the algorithm used, other than to say they are piecewise cubics.
I thought it might be interesting to run my R software on the dataset from the GHOST-80 manual. First, for reference, here are the plots from the GHOST-80 manual.
Here is the data:The single-valued curve drawn by GHOST-80 CURVEM has a sharp corner at X=2. How will the various methods I have programmed, cope with this dataset?
Here are two montages of the different methods.
Interestingly, the different methods fall into two clear groups. We can ignore for the moment the curve between the first two data points which is more a property of the way that the end-slopes are estimated, rather than the method itself. We see that there are two groups:
Group 1: Osculatory, Ellis-McLain, Akima, Makima and Wiggins Average Slope.
These all avoid any sharp corners and give a visually pleasing effect.
Group 2: Butland, Modified Butland and Wiggins Average Angle
The GHOST CURVEM method would also fall into this category. The two Butland methods (and possibly CURVEM) set the slope of the curve to be zero where the slopes of the adjacent chords have opposite sign. Thus the extrema of the curve occurs at the extrema of the data and the curve lies within the bounds of the data. The Wiggins Average Angle method is rather different. It does produce a very similar curve to the Butland methods but does not force the extrema of the curve to be exactly at the data extrema. The slope at x=2 (the data maximum) is 0.39 and at x= 8 (the end of a horizontal shelf) is -0.9, the latter giving a very slight ripple effect, not visible in the Butland methods.

Comments
Post a Comment