@Override
  public void writeToText(TextWriterStream out, String label) {
    if(label != null) {
      out.commentPrintLn(label);
    }
    out.commentPrintLn("Model class: " + getClass().getName());
    out.commentPrintLn("Centroid: " + getPrototype().toString());
    out.commentPrintLn("Strong Eigenvectors:");
    String strong = FormatUtil.format(getPCAResult().getStrongEigenvectors());
    while(strong.endsWith("\n")) {
      strong = strong.substring(0, strong.length() - 1);
    }
    out.commentPrintLn(strong);
    out.commentPrintLn("Weak Eigenvectors:");
    String weak = FormatUtil.format(getPCAResult().getWeakEigenvectors());
    while(weak.endsWith("\n")) {
      weak = weak.substring(0, weak.length() - 1);
    }
    out.commentPrintLn(weak);
    out.commentPrintLn("Eigenvalues: " + FormatUtil.format(getPCAResult().getEigenvalues()));
  }
@ Override public void writeToText ( TextWriterStream out , String label ) { if ( label != null ) { out . commentPrintLn ( label ) ; } out . commentPrintLn ( "Model class: " + getClass ( ) . getName ( ) ) ; out . commentPrintLn ( "Centroid: " + getPrototype ( ) . toString ( ) ) ; out . commentPrintLn ( "Strong Eigenvectors:" ) ; String strong = FormatUtil . format ( getPCAResult ( ) . getStrongEigenvectors ( ) ) ; while ( strong . endsWith ( "\n" ) ) { strong = strong . substring ( 0 , strong . length ( ) - 1 ) ; } out . commentPrintLn ( strong ) ; out . commentPrintLn ( "Weak Eigenvectors:" ) ; String weak = FormatUtil . format ( getPCAResult ( ) . getWeakEigenvectors ( ) ) ; while ( weak . endsWith ( "\n" ) ) { weak = weak . substring ( 0 , weak . length ( ) - 1 ) ; } out . commentPrintLn ( weak ) ; out . commentPrintLn ( "Eigenvalues: " + FormatUtil . format ( getPCAResult ( ) . getEigenvalues ( ) ) ) ; }
Implementation of {@link TextWriteable} interface

@param label unused parameter