|
|
|||||||||||||||||||||
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>
O
- object typepublic 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. |
OptionID |
NORMALIZATION_ID
Option ID for normalizations |
private ClassListParameter<Normalization<O>> |
NORMALIZATION_PARAM
Normalization class parameter |
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, logger |
Constructor Summary | |
---|---|
MultiRepresentedObjectNormalization()
Sets normalization parameter to the optionhandler. |
Method Summary | |
---|---|
private void |
initDefaultNormalizations(int numberOfRepresentations)
Init default normalizations for a given number of representations. |
List<MultiRepresentedObject<O>> |
normalize(List<MultiRepresentedObject<O>> featureVectors)
Performs a normalization on a set of feature vectors. |
List<Pair<MultiRepresentedObject<O>,Associations>> |
normalizeObjects(List<Pair<MultiRepresentedObject<O>,Associations>> 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 vectors to the original attribute ranges. |
MultiRepresentedObject<O> |
restore(MultiRepresentedObject<O> featureVector)
Transforms a feature vector to the original attribute ranges. |
List<String> |
setParameters(List<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, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, 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, collectOptions, getParameters, shortDescription |
Field Detail |
---|
public static final String DEFAULT_NORMALIZATION
public final OptionID NORMALIZATION_ID
private final ClassListParameter<Normalization<O extends DatabaseObject>> NORMALIZATION_PARAM
public static final Pattern SPLIT
private List<Normalization<O extends DatabaseObject>> normalizations
Constructor Detail |
---|
public MultiRepresentedObjectNormalization()
Method Detail |
---|
public List<Pair<MultiRepresentedObject<O>,Associations>> normalizeObjects(List<Pair<MultiRepresentedObject<O>,Associations>> 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 normalizationprivate void initDefaultNormalizations(int numberOfRepresentations)
numberOfRepresentations
- 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)
Normalization
linearEquationSystem
- ignored
UnsupportedOperationException
public String toString(String pre)
pre
- the prefix of each new line
public List<String> setParameters(List<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-setting
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |