Class LAESA.Factory<O>

  • Type Parameters:
    O - Object type
    All Implemented Interfaces:
    IndexFactory<O>
    Enclosing class:
    LAESA<O>

    public static class LAESA.Factory<O>
    extends java.lang.Object
    implements IndexFactory<O>
    Index factory.
    Author:
    Erich Schubert
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LAESA.Factory.Par<O>
      Parameterization class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Distance<? super O> distance
      Distance function
      (package private) int k
      Condition parameter
      (package private) int m
      Number of reference points
      (package private) RandomFactory rng
      Random generator
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(Distance<? super O> distance, int m, int k, RandomFactory rng)
      Constructor.
    • Field Detail

      • distance

        Distance<? super O> distance
        Distance function
      • m

        int m
        Number of reference points
      • k

        int k
        Condition parameter
    • Constructor Detail

      • Factory

        public Factory​(Distance<? super O> distance,
                       int m,
                       int k,
                       RandomFactory rng)
        Constructor.
        Parameters:
        distance - Distance function
        m - Number of reference points
        rng - Random generator
    • Method Detail

      • instantiate

        public LAESA<O> instantiate​(Relation<O> relation)
        Description copied from interface: IndexFactory
        Sets the database in the distance function of this index (if existing).
        Specified by:
        instantiate in interface IndexFactory<O>
        Parameters:
        relation - the relation to index