Class SpacefillingKNNPreprocessor.Factory<V extends elki.data.NumberVector>

  • Type Parameters:
    V - Vector type
    All Implemented Interfaces:
    elki.index.IndexFactory<V>
    Enclosing class:
    SpacefillingKNNPreprocessor<O extends elki.data.NumberVector>

    public static class SpacefillingKNNPreprocessor.Factory<V extends elki.data.NumberVector>
    extends java.lang.Object
    implements elki.index.IndexFactory<V>
    Index factory class
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.List<? extends elki.math.spacefillingcurves.SpatialSorter> curvegen
      Spatial curve generators
      (package private) int odim
      Number of dimensions to use.
      (package private) elki.data.projection.random.RandomProjectionFamily proj
      Random projection family to use.
      (package private) elki.utilities.random.RandomFactory random
      Random number generator.
      (package private) int variants
      Number of variants to generate for each curve
      (package private) double window
      Curve window size
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(java.util.List<? extends elki.math.spacefillingcurves.SpatialSorter> curvegen, double window, int variants, int odim, elki.data.projection.random.RandomProjectionFamily proj, elki.utilities.random.RandomFactory random)
      Constructor.
    • Field Detail

      • curvegen

        java.util.List<? extends elki.math.spacefillingcurves.SpatialSorter> curvegen
        Spatial curve generators
      • window

        double window
        Curve window size
      • variants

        int variants
        Number of variants to generate for each curve
      • odim

        int odim
        Number of dimensions to use.
      • proj

        elki.data.projection.random.RandomProjectionFamily proj
        Random projection family to use.
      • random

        elki.utilities.random.RandomFactory random
        Random number generator.
    • Constructor Detail

      • Factory

        public Factory​(java.util.List<? extends elki.math.spacefillingcurves.SpatialSorter> curvegen,
                       double window,
                       int variants,
                       int odim,
                       elki.data.projection.random.RandomProjectionFamily proj,
                       elki.utilities.random.RandomFactory random)
        Constructor.
        Parameters:
        curvegen - Curve generators
        window - Window multiplicator
        variants - Number of curve variants to generate
        odim - Number of dimensions to use -1 == all.
        proj - Random projection family
        random - Random number generator
    • Method Detail

      • instantiate

        public SpacefillingKNNPreprocessor<V> instantiate​(elki.database.relation.Relation<V> relation)
        Specified by:
        instantiate in interface elki.index.IndexFactory<V extends elki.data.NumberVector>
      • getInputTypeRestriction

        public elki.data.type.TypeInformation getInputTypeRestriction()
        Specified by:
        getInputTypeRestriction in interface elki.index.IndexFactory<V extends elki.data.NumberVector>