de.aitools.iv.mds.util
Class GnuplotWriter
java.lang.Object
de.aitools.iv.mds.util.GnuplotWriter
public class GnuplotWriter
- extends java.lang.Object
- Author:
- Anita
Constructor Summary |
GnuplotWriter(java.lang.String o,
java.lang.String n)
Creates a new instance of GnuplotWriter. |
Method Summary |
void |
writePositions(double[][] position)
Writes .plot file with positions. |
void |
writeSetup(java.util.HashMap<java.lang.String,java.lang.Object> infos,
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> cats)
Writes .gp file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GnuplotWriter
public GnuplotWriter(java.lang.String o,
java.lang.String n)
- Creates a new instance of GnuplotWriter.
- Parameters:
o
- output directoryn
- name of file (algorithm name)
writeSetup
public void writeSetup(java.util.HashMap<java.lang.String,java.lang.Object> infos,
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> cats)
- Writes .gp file. Copys content of gnuplot.template.
- Parameters:
infos
- hashmap with infos from algorithm (from getStatistic)cats
- HashMap with category names and ArrayLists which hold
the point indices belonging to the categories.
writePositions
public void writePositions(double[][] position)
- Writes .plot file with positions.
- Parameters:
position
- array with point coordinates