Package elki

Class Algorithm.Utils

  • Enclosing interface:
    Algorithm

    public static final class Algorithm.Utils
    extends java.lang.Object
    Shared functionality
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utils()
      Static utility class.
    • Field Detail

      • ALGORITHM_ID

        public static final OptionID ALGORITHM_ID
        Parameter to specify the algorithm to run.
      • DISTANCE_FUNCTION_ID

        public static final OptionID DISTANCE_FUNCTION_ID
        OptionID for the distance function.
    • Constructor Detail

      • Utils

        private Utils()
        Static utility class. Do not instantiate.
    • Method Detail

      • autorun

        public static java.lang.Object autorun​(Algorithm a,
                                               Database database)
        Try to auto-run the algorithm on a database by calling a method called run, with an optional Database first, and with data relations as specified by Algorithm.getInputTypeRestriction().
        Parameters:
        a - Algorithm to run on
        database - the database to run the algorithm on
        Returns:
        the Result computed by this algorithm