Package elki.math.spacefillingcurves
Class ZCurveTransformer
- java.lang.Object
-
- elki.math.spacefillingcurves.ZCurveTransformer
-
public class ZCurveTransformer extends java.lang.Object
Class to transform a relation to its Z coordinates.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private int
dimensionality
Dimensionality.private double[]
maxValues
Maximum values in each dimension.private double[]
minValues
Minimum values in each dimension.
-
Constructor Summary
Constructors Constructor Description ZCurveTransformer(Relation<? extends NumberVector> relation, DBIDs ids)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asByteArray(NumberVector vector)
Transform a single vector.
-
-
-
Constructor Detail
-
ZCurveTransformer
public ZCurveTransformer(Relation<? extends NumberVector> relation, DBIDs ids)
Constructor.- Parameters:
relation
- Relation to transformids
- IDs subset to process
-
-
Method Detail
-
asByteArray
public byte[] asByteArray(NumberVector vector)
Transform a single vector.- Parameters:
vector
- Vector to transform- Returns:
- Z curve value as byte array
-
-