This is the user sandbox of Visionat. A user sandbox is a subpage of the user's user page. It serves as a testing spot and page development space for the user and is not an encyclopedia article. Create or edit your own sandbox here.
Writing an article and ready to request its creation?
|Original author(s)||Adrienne Gaye Thompson|
|Stable release||2.0 / August 26, 2011|
GNU C-Graph is a novel tool for visualizing the Convolution Theorem, a core theorem in functional analysis with applications in signal and image processing, computer vision, statistics, and other areas of applied mathematics. "C-Graph" is short for "Convolution Graph". The package is an effective aid for lecture demonstrations and lab work in colleges and universities.
The underlying work in C-Graph was conceived and developed by Adrienne Gaye Thompson in the Honours year, October 1982 to April 1983, of her BSc. degree in Electrical Engineering at the University of Aberdeen, Scotland. She coded the Fortran 77 program for her dissertation "Interactive Computer Package Demonstrating: Sampling Convolution and the FFT" (the Dissertation) on the University's Honeywell 66/80 mainframe centrally administered by the University Computing Centre.
In November 2008, Thompson released NAILS (NAILS for Artificial Intelligence Lisp Solving), her suite of solutions to the exercises in the textbook LISP 3rd edition, with the intention of offering the package to GNU. On being advised that NAILS could not be adopted by the GNU Project (as the book on which it is based is non-free) she contacted Free Software Foundation President Richard Stallman, who suggested that she consider the program from her Dissertation instead.
Thompson is sole author of both the Dissertation and the derivative work C-Graph, released as GNU C-Graph 2.0.
The Convolution Theorem
The Fourier transform of the convolution of two signals is equal to the product of their Fourier transforms. Conversely, the inverse Fourier transform of the product of their transforms equals their convolution. We say that:
where and are two functions with convolution , and denotes the Fourier transform operator.
The Fast Fourier Transform (FFT) computes the Discrete Fourier Transform (DFT), which produces circular convolution when it is generally linear convolution in which we are interested. GNU C-Graph demonstrates the relationship between linear and circular convolution, showing that N-point circular convolution is equivalent to linear convolution when
Where and are the lengths of and , zero-padded to length . Linear filters can then be efficiently implemented according to the Convolution Theorem by multiplying the DFTs then taking the inverse.
With the terminal window as the user interface, colourful displays demonstrating convolution can be mounted with just a few keystrokes, an interactive user-friendly dialogue obviating the need for learning code.
The C-Graph wave set consists of pulses, their periodic counterparts, as well as aperiodic functions. Sine, cosine, triangular, rectangular, sawtooth, exponential, ramp, and step signals comprise the wave set. Each waveform is defined as a scalable array of numbers. The size of each array lies in the range [64, 1024] corresponding to the number of data points handed to the FFT. Pulses are of variable width as the periodic functions from which they are derived are of variable frequency. Error handling for user input is efficient. All graphs displayed may be retrieved for further viewing, or printing.
C-Graph prompts the user to select two waveforms then compares their linear convolution with their circular convolution. The linear convolution is performed directly in the time domain while the circular convolution is obtained in the usual manner - multiplication of their frequency spectra followed by application of the inverse Fast Fourier Transform (FFT). C-Graph displays the waveforms chosen and their spectra generated by the FFT followed by their linear and circular convolutions.
The following are displays from a demonstration visualizing, for example, the response of a simple low-pass RC filter when excited by a triangular pulse signal. The circuit output is the convolution of the exponential impulse response with the triangular input. Here, the user has selected the number of samples to be 128, a scaling coefficient of 40 for the exponential and, for the triangular pulse, a frequency of 0.8 Hz for the corresponding periodic triangular wave:
In October 1982, Thompson was assigned the development of a signal theory teaching aid as her Dissertation project. The program was to be coded in Fortran, be interactive, menu-driven and her own independent work. She chose the convolution property of the Fourier Transform with which to begin - the mathematics of which she was already fascinated - coding subroutines to perform the linear convolution of two pulses followed by the menu-driven package offering sine, cosine, ramp and step functions. She continued with the design of subroutines to generate periodic triangular and rectangular waveforms, typical functions she believed ought to be part of any signal theory package. As time did not allow further development of the package, Thompson submitted the Dissertation in April 1983.
The use of the periodic triangular and rectangular waveforms in the background image of C-Graph's homepage (also displayed in the infobox at the top of this page) is a symbolic reference to the special interest they received.
Encouraged by Stallman, Thompson began the project to relearn Fortran on 5 February 2009. She originally intended to reconstruct her Dissertation code again using Fortran 77 as that seemed more efficient than learning Fortran 90/95, but members of the Usenet group comp.lang.fortran persuaded her otherwise. Using Andy Vaught's G95 compiler, Thompson developed a preview release of C-Graph 2.0 to the stage at which she had terminated her Dissertation, releasing the preview code on 24 April 2009.
Thompson resumed work on the package in December 2010, concluding development in March 2011. While C-Graph adverts to the "structure, sequence and organization" of the program in the Dissertation, no part of C-Graph's code is copied from the underlying work; the package's features transform those of the Dissertation. Having released NAILS before embarking on the C-Graph project, her coding style is influenced by Lisp.
Plans for the next release include upgrading the implementation of the FFT algorithm, and a custom command line interface.
Download statistics suggest a worldwide C-Graph user base in the tens of thousands since the release of the package on 26 August 2011. GNU C-Graph is part of Fedora 18.
C-Graph is licensed under the GNU General Public License (the GPL) version 3 or any later version. In respect of identification of her Dissertation as the underlying work, the license takes advantage of the provisions of section 7 of the GPL, imposing additional terms in respect of author attribution and misrepresentation of origin.
Dedication and Logo
Thompson (who is black, a Jamaican of African descent) dedicated GNU C-Graph to all victims of apartheid and her former fiance, Eliezer Regnier, a popular Haitian-Bahamian attorney-at-law and human rights advocate who devoted his professional life to championing the cause of Haitian people in the Bahamas. Regnier died suddenly on 27 February 2010. In C-Graph, function Eliezer and subroutine Regnier (which define scaling and error handling protocols) honour him.
- Thompson 1983. Code from BSc. Honours Dissertation.
- Winston, P. H., & Horn, B.K.P. 1989. LISP 3rd ed. Reading, MA: Addison-Wesley. ISBN 0-201-08319-1.
- Thompson 2008. NAILS, a software package of solutions to the exercises in LISP 3rd ed.
- Thompson, Adrienne G (2009). See the C-Graph Additional Terms pursuant to the provisions of section 7 of the GPL in respect of author attribution and misrepresentation of origin.
- McGillem, & Cooper 1991, chap. 2 Convolution.
- Freeman 2011, lecture 8: Convolution.
- Smith S. W. 1997, Ch6:Convolution. Retrieved 18 March 2013.
- McGillem, & Cooper 1991, chap. 3-10 System Function.
- Smith, J. O. 2007 The Convolution Theorem.
- Smith S. W. 1997, Convolution via the Frequency Domain in Ch9:Applications of the DFT; Ch18:FFT Convolution. Retrieved 18 March 2013.
- Jones, D. 2006. Fast Convolution.
- Oppenheim 2005, lecture 16: Linear Filtering with the DFT.
- McGillem, & Cooper 1991, chap. 4-6 Applications of the FFT.
- Smith, J. O. 2007. Convolution as a Filtering Operation; Filters and Convolution.
- Alan Miller, fft_simple.f90. Derived from fft.f by Arthur Wouk.
- Thompson (viper-2) 11 - 18 February 2009. Posts to comp.lang.fortran thread Fortran Lesson: Are these Equivalent? Members of the group persuaded Thompson to use a modern Fortran compiler.
- Thompson (viper-2) 9 April 2009. Posts to comp.lang.fortran thread Petition against FORTRAN the statement "Fortress is intended to be a successor to Fortran" gave the impression that Fortran (was outmoded, doomed to be replaced by Fortress,Fortress, Language features in Wikipedia (retrieved 9 April 2009), subsequently edited with the replacement text "The name 'Fortress' is intended to connote a secure Fortran".
- Thompson 24 April 2009. C-Graph 2.0 preview release.
- Thompson 11 April 2009. Posts to comp.lang.fortran offered a "sneak peek" at the C-Graph 2.0 preview release.
- Freeman, Dennis M. (Fall 2011). 6.003 Signals and Systems. (Massachusetts Institute of Technology: MIT OpenCourseWare). License: Creative Commons BY-NC-SA.
- Jones, Douglas L. (2006, August 29). Digital Signal Processing: A User's Guide. Retrieved 18 March 2013.
- McGillem, Claire D. & Cooper, George R. (1991). Continuous and Discrete Signal and System Analysis (3rd.ed.). USA: Saunders College Publishing ISBN 0030510198.
- Oppenheim, Alan V. (Fall 2005). 6.341 Discrete-Time Signal Processing. (Massachusetts Institute of Technology: MIT OpenCourseWare). License: Creative Commons BY-NC-SA.
- Smith, Stephen W. (1997). The Scientist and Engineer's Guide to Digital Signal Processing. Retrieved 18 March 2013.
- Smith, Julius O. (2007). Mathematics of the Discrete Fourier Transform (DFT) with Audio Applications (2nd ed.). Signal processing resource with examples using GNU Octave. Retrieved 18 March 2013.
- Thompson, Adrienne G. (1983) Interactive Computer Package Demonstrating: Sampling Convolution and the FFT, BSc. dissertation, submitted in partial fulfillment for the degree of Bachelor of Science in Engineering (Honours) University of Aberdeen, Scotland.
C-Graph Category:Free data visualization software Category:Theorems in Fourier analysis Category:Free educational software Category:Free science software Category:Free mathematics software Category:Free software programmed in Fortran