de.lmu.ifi.dbs.elki.math.spacefillingcurves
Class ZCurve.Transformer

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.math.spacefillingcurves.ZCurve.Transformer
Enclosing class:
ZCurve

public static class ZCurve.Transformer
extends Object

Class to transform a relation to its Z coordinates.


Field Summary
private  int dimensionality
          Dimensionality
private  double[] maxValues
          Maximum values in each dimension
private  double[] minValues
          Minimum values in each dimension
 
Constructor Summary
ZCurve.Transformer(Relation<? extends NumberVector<?,?>> relation, DBIDs ids)
          Constructor.
 
Method Summary
 BigInteger asBigInteger(NumberVector<?,?> vector)
          Transform a single vector.
 byte[] asByteArray(NumberVector<?,?> vector)
          Transform a single vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxValues

private final double[] maxValues
Maximum values in each dimension


minValues

private final double[] minValues
Minimum values in each dimension


dimensionality

private final int dimensionality
Dimensionality

Constructor Detail

ZCurve.Transformer

public ZCurve.Transformer(Relation<? extends NumberVector<?,?>> relation,
                          DBIDs ids)
Constructor.

Parameters:
relation - Relation to transform
ids - IDs subset to process
Method Detail

asBigInteger

public BigInteger asBigInteger(NumberVector<?,?> vector)
Transform a single vector.

Parameters:
vector - Vector to transform
Returns:
Z curve value as bigint

asByteArray

public byte[] asByteArray(NumberVector<?,?> vector)
Transform a single vector.

Parameters:
vector - Vector to transform
Returns:
Z curve value as byte array

Release 0.4.0 (2011-09-20_1324)