First Experiences
One of my duties at Leicester was to provide user support for the GHOST graphical system, developed at Culham Laboratory. GHOST was the main graphical system provided to users of the Computing Laboratory, not surprising since our Director, David Fisher, had a spell working at Culham in the 1960s. There was some friendly rivalry between GHOST and GINO-F, the graphical system developed at the CAD Centre, Cambridge. The CAD group in the Engineering Department at Leicester used GINO-F on their DEC PDP computer. It was a natural choice for them since it was well suited to design applications. In those days, application software often had associated user groups and Leicester were lead players in the GHOST User Group and the GINO-F User Group.
The Institute of Mathematics and its Applications (IMA) (through its Numerical Analysis group) proposed a conference on 'Mathematical Methods in Computer Graphics and Design' and we hosted this in Leicester in 1978 - with myself as organiser. I gave the opening talk, on curve and function drawing. Other speakers were Dale Sutcliffe, Malcolm Sabin, Dermot McLain, Robin Forrest and Ian Braid. Geoff Hayes chaired the sessions. We all wrote up our talks as book chapters for a volume publishes for the IMA by Academic Press.
Looking back at my chapter nearly 50 years later is fascinating. I made a big distinction between techniques that would be appropriate for single-valued curves (y = f(x)) and those for parametric curves (x(t), y(t)). I included a figure which purports to show that the curve draing routines in both GHOST nor GINO-F fail to give a single-valued curve.
For GINO-F, understandably since it was design-oriented, it was not a surprise that only parametric curves were provided. But, looking back, it seems strange for GHOST. In fact, I wonder now if I was unfair to GHOST. The CURVEO did provide parametric curves. But now, looking at the original GHOST manual by Fred Larkin, online at http://www.chilton-computing.org.uk/acl/pdfs/clm-r84.pdf, and archived thanks to Bob Hopgood, I see there is a routine GRAPHN, which would do the single-valued case. Did I miss this, or was that routine removed from the GHOST Library before I encountered it. I would guess it was my error but I cannot remember anyone correcting me!
The best known interpolant for curve drawing is the cubic spline, giving a piecewise cubic curve with first and second derivative continuity at the knots, always chosen to be the data points. It is a global method, in the sense that it depends on the full set of data points. There are local methods which likewise generate a piecewise cubic, but depend only on data points close to each cubic piece - at the expense of second derivative continuity.
My talk and the paper discussed these in detail. They all estimate the slope at a data point in some way, from which a piecewise cubic can be determined. The methods I described were:
- osculatory method, where each slope is estimated as the slope of a quadratic fitted to the data point and its two neighbours
- Ellis and McLain method, where each slope is estimated as the slope of a cubic fitted to the data point and its immediate neighbours, and is a least-squares fit to the neighbours either side of these three
- Akima method, where each slope is a weighted average of the slopes of the straight lines to the immediate neighbours
I programmed these three methods - using FORTRAN and GHOST. Here are the plots from the chapter. Two datasets were used - the first is (apparently) cost-effectiveness data, which is theoretically known to be concave - so I was looking for methods that might preserve that property. The second is one with a sharp peak, where I was looking for 'undershoots' on either side of the sharp peak. The Akima method seemed to be best at preserving the shape but at the expense of giving a rather tight fitting curve.
I thought it would be an interesting exercise to recreate these plots, using a modern programming environment - R. I don't have the original dataset for the concave cost-effectiveness case but have created at least an approximation. The peak dataset is one I used as an example for the NAG Graphics Library.





Comments
Post a Comment