Modifier and Type | Field and Description |
---|---|
private int |
dimensionality
Dimensionality
|
private double[] |
maxValues
Maximum values in each dimension
|
private double[] |
minValues
Minimum values in each dimension
|
Constructor and Description |
---|
ZCurve.Transformer(Relation<? extends NumberVector<?,?>> relation,
DBIDs ids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
asBigInteger(NumberVector<?,?> vector)
Transform a single vector.
|
byte[] |
asByteArray(NumberVector<?,?> vector)
Transform a single vector.
|
private final double[] maxValues
private final double[] minValues
private final int dimensionality
public ZCurve.Transformer(Relation<? extends NumberVector<?,?>> relation, DBIDs ids)
relation
- Relation to transformids
- IDs subset to processpublic BigInteger asBigInteger(NumberVector<?,?> vector)
vector
- Vector to transformpublic byte[] asByteArray(NumberVector<?,?> vector)
vector
- Vector to transform