public static String computeSimpsonReciprocal(ViewerBase viewer,ProgressListener progressListener) throws IOException, CanceledException {
  if (viewer instanceof MainViewer)   return toString(computeSimpsonReciprocal((MainViewer)viewer,progressListener));
 else   if (viewer instanceof ClassificationViewer)   return toString(computeSimpsonReciprocal((ClassificationViewer)viewer,progressListener));
 else   return null;
}

public static String computeSimpsonReciprocal ( ViewerBase viewer , ProgressListener progressListener ) throws IOException , CanceledException { if ( viewer instanceof MainViewer ) return toString ( computeSimpsonReciprocal ( ( MainViewer ) viewer , progressListener ) ) ; else if ( viewer instanceof ClassificationViewer ) return toString ( computeSimpsonReciprocal ( ( ClassificationViewer ) viewer , progressListener ) ) ; else return null ; }
compute the shannon - weaver diversity index in bits
