|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.normalization.AbstractNormalization<MultiRepresentedObject<O>>
de.lmu.ifi.dbs.elki.normalization.MultiRepresentedObjectNormalization<O>
public class MultiRepresentedObjectNormalization<O extends DatabaseObject>
Class to perform and undo a normalization on multi-represented objects with respect to given normalizations for each representation.
Field Summary | |
---|---|
static String |
DEFAULT_NORMALIZATION
Default normalization. |
static String |
NO_NORMALIZATION
Keyword for no normalization. |
static String |
NORMALIZATION_D
Description of parameter parser. |
static String |
NORMALIZATION_P
Label for parameter normalizations. |
private List<Normalization<O>> |
normalizations
The normalizations for each representation. |
static Pattern |
SPLIT
A pattern defining a comma. |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Constructor Summary | |
---|---|
MultiRepresentedObjectNormalization()
Sets normalization parameter to the optionhandler. |
Method Summary | |
---|---|
List<AttributeSettings> |
getAttributeSettings()
Returns the setting of the attributes of the algorithm. |
List<MultiRepresentedObject<O>> |
normalize(List<MultiRepresentedObject<O>> featureVectors)
Performs a normalization on a set of feature vectors. |
List<ObjectAndAssociations<MultiRepresentedObject<O>>> |
normalizeObjects(List<ObjectAndAssociations<MultiRepresentedObject<O>>> objectAndAssociationsList)
Performs a normalization on a list of database objects and their associations. |
List<MultiRepresentedObject<O>> |
restore(List<MultiRepresentedObject<O>> featureVectors)
Transforms a set of feature vectores to the original attribute ranges. |
MultiRepresentedObject<O> |
restore(MultiRepresentedObject<O> featureVector)
Transforms a feature vector to the original attribute ranges. |
String[] |
setParameters(String[] args)
Sets the attributes of the class accordingly to the given parameters. |
String |
toString(String pre)
Returns a string representation of this normalization. |
LinearEquationSystem |
transform(LinearEquationSystem linearEquationSystem)
Transforms a linear equation system describing linear dependencies derived on the normalized space into a linear equation system describing linear dependencies quantitatively adapted to the original space. |
Methods inherited from class de.lmu.ifi.dbs.elki.normalization.AbstractNormalization |
---|
toString |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
public static final String DEFAULT_NORMALIZATION
public static final String NO_NORMALIZATION
public static final String NORMALIZATION_P
public static final String NORMALIZATION_D
public static final Pattern SPLIT
private List<Normalization<O extends DatabaseObject>> normalizations
Constructor Detail |
---|
public MultiRepresentedObjectNormalization()
Method Detail |
---|
public List<ObjectAndAssociations<MultiRepresentedObject<O>>> normalizeObjects(List<ObjectAndAssociations<MultiRepresentedObject<O>>> objectAndAssociationsList) throws NonNumericFeaturesException
objectAndAssociationsList
- the list of database objects and their associations
NonNumericFeaturesException
- if feature vectors differ in length or values are not
suitable to normalizationpublic List<MultiRepresentedObject<O>> normalize(List<MultiRepresentedObject<O>> featureVectors) throws NonNumericFeaturesException
Normalization
featureVectors
- a set of feature vectors to be normalized
NonNumericFeaturesException
- if feature vectors differ in length or values are not
suitable to normalizationNormalization.normalize(java.util.List)
public List<MultiRepresentedObject<O>> restore(List<MultiRepresentedObject<O>> featureVectors) throws NonNumericFeaturesException
featureVectors
- a set of feature vectors to be transformed into original space
NonNumericFeaturesException
- if feature vectors differ in length or are not compatible
with values initialized during normalizationpublic MultiRepresentedObject<O> restore(MultiRepresentedObject<O> featureVector) throws NonNumericFeaturesException
featureVector
- a feature vector to be transformed into original space
NonNumericFeaturesException
- feature vector is not compatible with values initialized
during normalizationpublic LinearEquationSystem transform(LinearEquationSystem linearEquationSystem) throws NonNumericFeaturesException
Normalization
linearEquationSystem
- the linear equation system to be transformed
UnsupportedOperationException
NonNumericFeaturesException
- if specified linear equation system is not compatible
with values initialized during normalizationNormalization.transform(de.lmu.ifi.dbs.elki.math.linearalgebra.LinearEquationSystem)
public String toString(String pre)
pre
- the prefix of each new line
public List<AttributeSettings> getAttributeSettings()
getAttributeSettings
in interface Parameterizable
getAttributeSettings
in class AbstractParameterizable
Parameterizable.getAttributeSettings()
public String[] setParameters(String[] args) throws ParameterException
setParameters
in interface Parameterizable
setParameters
in class AbstractParameterizable
args
- parameters to set the attributes accordingly to
IllegalArgumentException
- in case of wrong parameter-setting
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(String[])
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |