de.aitools.iv.mds.util
Class Postprocessor

java.lang.Object
  extended by de.aitools.iv.mds.util.Postprocessor

public class Postprocessor
extends java.lang.Object

Author:
Anita

Constructor Summary
Postprocessor(java.lang.String o)
          Creates a new instance of Postprocessor.
 
Method Summary
 void exportCSV2Gnuplot(double[][] positions, java.util.HashMap<java.lang.String,java.lang.Object> infos)
          Writes coordinates of positions to gnuplot file.
 void exportReuters2Gnuplot(double[][] positions, java.lang.String metafile, java.util.HashMap<java.lang.String,java.lang.Object> infos)
          Includes infos from documents of reuters corpus, i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Postprocessor

public Postprocessor(java.lang.String o)
Creates a new instance of Postprocessor.

Parameters:
o - output directory
Method Detail

exportReuters2Gnuplot

public void exportReuters2Gnuplot(double[][] positions,
                                  java.lang.String metafile,
                                  java.util.HashMap<java.lang.String,java.lang.Object> infos)
Includes infos from documents of reuters corpus, i.e. categories in gnuplot-files.

Parameters:
positions - array with point coordinates
metafile - text file which holds xml-filename, archive and category of point index
infos - HashMap with infos of algorithm (getStatistic)

exportCSV2Gnuplot

public void exportCSV2Gnuplot(double[][] positions,
                              java.util.HashMap<java.lang.String,java.lang.Object> infos)
Writes coordinates of positions to gnuplot file. To be used if input was not a collection of reuters corpus and only position coordinates and algorithm infos are available.

Parameters:
positions - array with point coordinates
infos - HashMap with infos of algorithm (getStatistic)