org.itc.irst.tcc.sre.kernel.expl
Class ContextMapping
java.lang.Object
org.itc.irst.tcc.sre.kernel.expl.ContextMapping
- All Implemented Interfaces:
- Mapping
- Direct Known Subclasses:
- GlobalContextMapping, LocalContextMapping, ShallowLinguisticMapping
public abstract class ContextMapping
- extends java.lang.Object
- implements Mapping
TO DO
- Since:
- 1.0
- Version:
- %I%, %G%
- Author:
- Claudio Giuliano
Field Summary |
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the
Logger instance named ContextMapping . |
protected static int |
SUBSPACE_DIMENSION
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- Define a static logger variable so that it references the
Logger instance named
ContextMapping
.
SUBSPACE_DIMENSION
protected static final int SUBSPACE_DIMENSION
- See Also:
- Constant Field Values
ContextMapping
public ContextMapping()
subspaceCount
public abstract int subspaceCount()
- Returns the number of active subspaces in this context mapping.
- Returns:
- the number of active subspaces.
map
public abstract Vector[] map(java.lang.Object x,
FeatureIndex[] index)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
mergeSubspaces
protected Vector mergeSubspaces(Vector[] subspaces)
maxDimension
protected int maxDimension(SparseVector[] subspaces)
map
public VectorSet map(ExampleSet data,
FeatureIndex[] index)
throws java.lang.IllegalArgumentException
- Description copied from interface:
Mapping
- Maps the specified example set into a feature space.
- Specified by:
map
in interface Mapping
- Parameters:
data
- input example set.index
- index of the feature spase.
- Returns:
- a feature space.
- Throws:
java.lang.IllegalArgumentException
- if the the specified example set is illegal or inappropriate.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object