Class AbstractCoverTree.Factory<O>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Distance<? super O> distance
      Holds the instance of the trees distance function.
      protected double expansion
      Constant expansion rate. 2 would be the intuitive value, but the original version used 1.3, so we copy this.
      protected int truncate
      Truncate tree at this height.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(Distance<? super O> distance, double expansion, int truncate)
      Constructor.
    • Field Detail

      • distance

        protected Distance<? super O> distance
        Holds the instance of the trees distance function.
      • expansion

        protected double expansion
        Constant expansion rate. 2 would be the intuitive value, but the original version used 1.3, so we copy this. This means that in every level, the cover radius shrinks by 1.3.
      • truncate

        protected int truncate
        Truncate tree at this height.
    • Constructor Detail

      • Factory

        public Factory​(Distance<? super O> distance,
                       double expansion,
                       int truncate)
        Constructor.
        Parameters:
        distance - Distance function
        expansion - Expansion rate
        truncate - Truncate branches with less than this number of instances