Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • ZCurveTransformer

        public ZCurveTransformer​(Relation<? extends NumberVector> relation,
                                 DBIDs ids)
        Constructor.
        Parameters:
        relation - Relation to transform
        ids - 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