Registered Member
|
linear discriminant analysis can i get some help doing this
I fallowed a tutorial and wrote most of the function and example data into c++. http://people.revoledu.com/kardi/tutorial/LDA/Numerical%20Example.html The discriminent Function that has fi in it I am having trouble and getting type mis mach. I fallowed the code and their appears to be slight differences in rounding from the excel example. The error I get before commenting out my fi line is ... C:\Users\josheeg\Documents\c\test\test\main.cpp|157|error: cannot convert 'const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::ScaledProduct<Eigen::GeneralProduct<Eigen::Matrix<double, -0x000000001, -0x000000001, 0, -0x000000001, -0x000000001>, Eigen::Matrix<double, -0x000000001, -0x000000001, 0, -0x000000001, -0x000000001>, 5> >, const Eigen::GeneralProduct<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Matrix<double, -0x000000001, -0x000000001, 0, -0x000000001, -0x000000001> >, Eigen::Matri|
|
Registered Member
|
I did get a example to work for arduino with the linear algebra libraries.
|
Registered Member
|
Linear discriminant pattern matching seems to work well with one example of data.
More data from octave and r examples of lda could help test. I also got something like this to compile for the arduino duo but do not have one to test this on.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]