Package elki.algorithm.statistics
Class AddSingleScale
- java.lang.Object
-
- elki.algorithm.statistics.AddSingleScale
-
- All Implemented Interfaces:
Algorithm
@Description("Setup a scaling so that all dimensions are scaled equally in visualization.") public class AddSingleScale 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 Modifier and Type Class Description static class
AddSingleScale.Par
Parameterization class.-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double[]
minmax
Minimum and maximum to use.
-
Constructor Summary
Constructors Constructor Description AddSingleScale(double[] minmax)
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
-
-