Class FilterUtil


  • public final class FilterUtil
    extends java.lang.Object
    Utilities for implementing filters.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FilterUtil()
      Fake constructor: do not instantiate.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int findLabelColumn​(elki.datasource.bundle.BundleMeta meta)
      Find the first "label-like" column (matching TypeUtil.GUESSED_LABEL ) in a type information.
      static int findLabelColumn​(elki.datasource.bundle.MultipleObjectsBundle bundle)
      Find the first "label-like" column (matching TypeUtil.GUESSED_LABEL ) in a bundle.
      static <V extends elki.data.NumberVector>
      elki.data.NumberVector.Factory<V>
      guessFactory​(elki.data.type.SimpleTypeInformation<V> in)
      Try to guess the appropriate factory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilterUtil

        private FilterUtil()
        Fake constructor: do not instantiate.
    • Method Detail

      • guessFactory

        public static <V extends elki.data.NumberVector> elki.data.NumberVector.Factory<V> guessFactory​(elki.data.type.SimpleTypeInformation<V> in)
        Try to guess the appropriate factory.
        Type Parameters:
        V - Vector type
        Parameters:
        in - Input type
        Returns:
        Factory
      • findLabelColumn

        public static int findLabelColumn​(elki.datasource.bundle.MultipleObjectsBundle bundle)
        Find the first "label-like" column (matching TypeUtil.GUESSED_LABEL ) in a bundle.
        Parameters:
        bundle - Bundle
        Returns:
        Column number, or -1.
      • findLabelColumn

        public static int findLabelColumn​(elki.datasource.bundle.BundleMeta meta)
        Find the first "label-like" column (matching TypeUtil.GUESSED_LABEL ) in a type information.
        Parameters:
        meta - Meta data
        Returns:
        Column number, or -1.