Package elki.algorithm.statistics
Class AddUniformScale
- java.lang.Object
-
- elki.algorithm.statistics.AddUniformScale
-
- All Implemented Interfaces:
Algorithm
@Description("Setup a scaling so that all dimensions have the same value range.") public class AddUniformScale extends java.lang.Object implements Algorithm
Pseudo "algorithm" that computes the global min/max for a relation across all attributes. FIXME: this should become part of relation metadata.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Constructor Summary
Constructors Constructor Description AddUniformScale()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformation[]
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.java.lang.Void
run(Database database)
Run the algorithm on all vector relations of a database.private ScalesResult
run(Relation<? extends NumberVector> rel)
Add scales to a single vector relation.
-
-
-
Method Detail
-
run
public java.lang.Void run(Database database)
Run the algorithm on all vector relations of a database.- Parameters:
database
- Database- Returns:
- Empty (scales are attached to the relations)
-
run
private ScalesResult run(Relation<? extends NumberVector> rel)
Add scales to a single vector relation.- Parameters:
rel
- Relation- Returns:
- Scales
-
getInputTypeRestriction
public TypeInformation[] getInputTypeRestriction()
Description copied from interface:Algorithm
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceAlgorithm
- Returns:
- Type restriction
-
-