org.itc.irst.tcc.sre.kernel.expl
Class ContextMapping

java.lang.Object
  extended by 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
           
 
Constructor Summary
ContextMapping()
           
 
Method Summary
 VectorSet map(ExampleSet data, FeatureIndex[] index)
          Maps the specified example set into a feature space.
abstract  Vector[] map(java.lang.Object x, FeatureIndex[] index)
           
protected  int maxDimension(SparseVector[] subspaces)
           
protected  Vector mergeSubspaces(Vector[] subspaces)
           
abstract  int subspaceCount()
          Returns the number of active subspaces in this context mapping.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.itc.irst.tcc.sre.kernel.expl.Mapping
setParameters
 

Field Detail

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
Constructor Detail

ContextMapping

public ContextMapping()
Method Detail

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