Class WekaNearestNeighborSearchContainer

    • Constructor Detail

      • WekaNearestNeighborSearchContainer

        public WekaNearestNeighborSearchContainer()
        Initializes the container.

        Only used for generating help information.
      • WekaNearestNeighborSearchContainer

        public WekaNearestNeighborSearchContainer​(weka.core.Instance inst,
                                                  weka.core.Instances hood)
        Initializes the container with the filter and the associated data.
        Parameters:
        inst - the instance that triggered the nearest neighbor search
        hood - the neighborhood
      • WekaNearestNeighborSearchContainer

        public WekaNearestNeighborSearchContainer​(weka.core.Instance inst,
                                                  weka.core.Instances hood,
                                                  double[] distances)
        Initializes the container with the filter and the associated data.
        Parameters:
        inst - the instance that triggered the nearest neighbor search
        hood - the neighborhood
        distances - the distances, can be null
    • Method Detail

      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface Container
        Specified by:
        isValid in class AbstractContainer
        Returns:
        true if all the necessary values are available