*/
public class PCA implements Runnable
{
- boolean jvCalcMode = true;
-
MatrixI symm;
double[] eigenvalue;
// long now = System.currentTimeMillis();
try
{
- details.append("PCA Calculation Mode is "
- + (jvCalcMode ? "Jalview variant" : "Original SeqSpace")
- + "\n");
-
eigenvector = computeSimilarity(seqs);
details.append(" --- OrigT * Orig ---- \n");
return result;
}
- public void setJvCalcMode(boolean calcMode)
- {
- this.jvCalcMode = calcMode;
- }
-
/**
* Answers the N dimensions of the NxN PCA matrix. This is the number of
* sequences involved in the pairwise score calculation.
similarityParams = params;
}
- public boolean isJvCalcMode()
- {
- return jvCalcMode;
- }
-
public void run()
{
pca = new PCA(seqstrings, scoreModel, similarityParams);
- pca.setJvCalcMode(jvCalcMode);
pca.run();
// Now find the component coordinates