/jfr-masters/code/frontends/freq:
README
graph_fft.py
imag.png
mktxt.conf
mktxt.py
nsconfig.py
nsutil.py
real.png
sample.txt
test.go


The contents of this directory are results of my brief investigation into
using the Fast Fourier Transform to analyze time series computer-health 
data.


graph_fft.py:

	I don't remember exactly what this was supposed to do, but I seem to
	have not completed the program. This file is part of my work product,
	it doesn't run and it's not useful.

imag.png, real.png:

	These files are output from the program test.go. They correspond to the
	input in sample.txt. real.png shows the graph of the real terms from the
	FFT of the data in sample.txt. imag.png shows the imaginary components.

mktxt.py, mktxt.conf:

	mktxt.py retrieves data from a MySQL database for a particular host
	and property. It creates a text file named based on the host and
	property. I used this program to build the file sample.txt. mktxt.conf
	contains configuration information for the nsconfig.py and nsutil.py
	libraries. mktxt.conf is not complete. You will need to add the
	address of the database server, user, etc.

nsconfig.py:

	nsconfig.py defines several functions necessary for reading
	configuration files (like mktxt.conf).

nsutil.py:
	depends on pymysql and rrdtool Python packages.
	rrdtool must be installed.

	nsutil.py defines many functions useful for working with the NodeScape
	back-end. 

test.go:
	depends on  github.com/mjibson/go-dsp/fft 
				bitbucket.org/binet/go-gnuplot/pkg/gnuplot
	Gnuplot binaries must be installed.

	test.go is actually one of my first Go programs. It takes a text file
	build by mktxt.py as input and computes the FFT of the time series.
	It generates graphs of both the real and imaginary components.

	Build with "go build test.go". Run as "./test <mktxt.py text file>
