Class ProjectedIndex.Factory<O,​I>

  • Type Parameters:
    O - Outer object type.
    I - Inner object type.
    All Implemented Interfaces:
    elki.index.IndexFactory<O>
    Enclosing class:
    ProjectedIndex<O,​I>

    public static class ProjectedIndex.Factory<O,​I>
    extends java.lang.Object
    implements elki.index.IndexFactory<O>
    Index factory.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) elki.index.IndexFactory<I> inner
      Inner index factory.
      (package private) double kmulti
      Multiplier for k.
      (package private) boolean materialize
      Whether to use a materialized view, or a virtual view.
      (package private) boolean norefine
      Disable refinement of distances.
      (package private) elki.data.projection.Projection<O,​I> proj
      Projection to use.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(elki.data.projection.Projection<O,​I> proj, elki.index.IndexFactory<I> inner, boolean materialize, boolean norefine, double kmulti)
      Constructor.
    • Field Detail

      • proj

        elki.data.projection.Projection<O,​I> proj
        Projection to use.
      • inner

        elki.index.IndexFactory<I> inner
        Inner index factory.
      • materialize

        boolean materialize
        Whether to use a materialized view, or a virtual view.
      • norefine

        boolean norefine
        Disable refinement of distances.
      • kmulti

        double kmulti
        Multiplier for k.
    • Constructor Detail

      • Factory

        public Factory​(elki.data.projection.Projection<O,​I> proj,
                       elki.index.IndexFactory<I> inner,
                       boolean materialize,
                       boolean norefine,
                       double kmulti)
        Constructor.
        Parameters:
        proj - Projection
        inner - Inner index
        materialize - Flag for materializing
        norefine - Disable refinement of distances
        kmulti - Multiplicator for k.
    • Method Detail

      • instantiate

        public ProjectedIndex<O,​I> instantiate​(elki.database.relation.Relation<O> relation)
        Specified by:
        instantiate in interface elki.index.IndexFactory<O>
      • getInputTypeRestriction

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