at.tuwien.ifs.somtoolbox.apps.helper
Class SOMLibInputMerger

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.apps.helper.SOMLibInputMerger
All Implemented Interfaces:
SOMToolboxApp

public class SOMLibInputMerger
extends Object
implements SOMToolboxApp

Merges two or more SOMLib Input files, i.e. vector and template files. Template vectors can be off different dimensionality, and may contain different features, but some features may also be overlapping. Different merge strategies are available: union of all features sets, intersection of features sets, and strategies in between, retaining a feature if it appears in at least x sets. This class is a bit similar to VectorFileMerger, but more generic in the number of inputs it can take, and in the merging strategies, though it doesn't support the weighting strategies implemented in VectorFileMerger.

Version:
$Id: SOMLibInputMerger.java 3956 2010-11-29 15:33:45Z frank $
Author:
Rudolf Mayer

Nested Class Summary
(package private) static class SOMLibInputMerger.mergeMode
           
 
Nested classes/interfaces inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
SOMToolboxApp.Type
 
Field Summary
static SOMToolboxApp.Type APPLICATION_TYPE
           
static String DESCRIPTION
           
static String LONG_DESCRIPTION
           
static com.martiansoftware.jsap.Parameter[] OPTIONS
           
 
Fields inherited from interface at.tuwien.ifs.somtoolbox.apps.SOMToolboxApp
DEV_BY_STRING, HOMEPAGE, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
 
Constructor Summary
SOMLibInputMerger()
           
 
Method Summary
static void main(String[] args)
           
private static void merge(String[] inputTvs, String[] inputVecs, String outFile, int percentage, SOMLibInputMerger.mergeMode mode, int[] size)
           
static void mergeVectors(String[] inputTvs, String[] inputVecs, String outFile, String modeString, int[] size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTIONS

public static final com.martiansoftware.jsap.Parameter[] OPTIONS

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

LONG_DESCRIPTION

public static final String LONG_DESCRIPTION
See Also:
Constant Field Values

APPLICATION_TYPE

public static final SOMToolboxApp.Type APPLICATION_TYPE
Constructor Detail

SOMLibInputMerger

public SOMLibInputMerger()
Method Detail

main

public static void main(String[] args)
                 throws IOException,
                        SOMLibFileFormatException
Throws:
IOException
SOMLibFileFormatException

mergeVectors

public static void mergeVectors(String[] inputTvs,
                                String[] inputVecs,
                                String outFile,
                                String modeString,
                                int[] size)
                         throws IOException,
                                SOMLibFileFormatException
Throws:
IOException
SOMLibFileFormatException

merge

private static void merge(String[] inputTvs,
                          String[] inputVecs,
                          String outFile,
                          int percentage,
                          SOMLibInputMerger.mergeMode mode,
                          int[] size)
                   throws IOException,
                          SOMLibFileFormatException
Throws:
IOException
SOMLibFileFormatException