Coffee test with PLS.

 

PLS algorithm that given the spectra over some coffee retrieves if is Arabian coffee o Colombian Coffee and plots the T and U scores.

 

You can select the tolerance for each iteration of the PLS algorithm, and test the number of the latent variables to test, it starts from 2 to the number that the user puts in the preferences.