posted Jan 13, 2012, 6:53 PM by Dan Jordy
Look at this code and let me know what you think. I modified the 2x2LDA, 2 class code to do 4x4LDA, 7 class code. I haven't tested it yet, so if you have data I can use that for testing. If not, I'll try to make something up. Total: 4 hours 
posted Dec 27, 2011, 6:01 PM by Dan Jordy
Total 2 hours Created 2 programs, one to do the LDA prework (to determine the pooled covariance matrix) and one to do the testing on the new sample. Take a look and let me know what you think. This works on the 2x2 matrix. Some of the code needs to change if there are more/less # of samples. 
posted Dec 19, 2011, 5:47 PM by Dan Jordy
1 hour: Created functions to transition from input data to pooled covariance matrix. Need to: Pass back results to main program.
Remove hardcoded values to number of samples in each group.
Create new function to evaluate test values
Program currently only takes in 2 groups, would need to extend to more groupings.

posted Nov 20, 2011, 5:05 PM by Dan Jordy
Created code from spreadsheet named middleLDAtestc.xlt 
posted Nov 5, 2011, 1:00 PM by Dan Jordy
[
updated Nov 13, 2011, 1:02 PM
]
Update: Started looking at C code again 2011_11_13  Completed Inverse work, total hours: 6  Determinant of 2x2  done
 Determinant of 4x4  done
 Inverse of 2x2  done
 Adjoint of 2x2  done
 Inverse of 4x4  done
Code to be uploaded today. 
posted Jun 20, 2011, 4:53 AM by Dan Jordy
Looked at code again. Ran LDA program with 20 input points, and didn't get good results (before I just extended it to 20 data points and check for compiler errors).
Issue with input data I'm assuming; my input data was duplication of the example LDA data, to reach 20 data points. This duplication caused the program to crash (could not take the inverse of the covariance matrix). Perturbed some data from its original values, then was able to get a probability function result from it. Did not pursue the code further once I realized it was a data problem & not a software issue. 
posted May 31, 2011, 7:10 AM by Dan Jordy
Modified code to use 20 input points for each movement. Need to now include movements in 9 different directions (states). 
posted May 18, 2011, 5:01 PM by Dan Jordy
Found looping error, now LDA discriminant function calculates correctly. Getting results as expected, using one of the calibration points as the sample point. Will now look at using "real" data, not sample data from tutorial 
posted May 2, 2011, 9:03 PM by Joshua Wojnas
Time domain statistics funtions acsept arrays and vareables consolodated. So arrays can be passed into the time domain statistics functions They all use a single for loop so that loop could be when the data is taken in. Taking the mean is done at the end of the for loop. Vareables are replaced with constants or macros where possible.

posted Apr 29, 2011, 6:39 AM by Dan Jordy
Have globalmean, means of groups, & covariance matrices calculating. Need to complete:  pooled within group covariance matrix
 prior probability matrix (if different than assumed pi = ni/N)
 Discriminant function to determine grouping of new sample.

