at.tuwien.ifs.somtoolbox.apps.helper
Class SOMLibInputMerger
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SOMLibInputMerger
public SOMLibInputMerger()
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