Class FileBasedSparseFloatDistance.Par

  • All Implemented Interfaces:
    elki.utilities.optionhandling.Parameterizer
    Enclosing class:
    FileBasedSparseFloatDistance

    public static class FileBasedSparseFloatDistance.Par
    extends java.lang.Object
    implements elki.utilities.optionhandling.Parameterizer
    Parameterization class.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static elki.utilities.optionhandling.OptionID DEFAULTDIST_ID
      Optional parameter to specify the distance to return when no distance was given in the file.
      protected float defaultDistance
      Distance to return when not defined otherwise.
      static elki.utilities.optionhandling.OptionID MATRIX_ID
      Parameter that specifies the name of the distance matrix file.
      protected java.net.URI matrixfile
      Input file.
      protected DistanceParser parser
      Parser for input file.
      static elki.utilities.optionhandling.OptionID PARSER_ID
      Optional parameter to specify the parsers to provide a database, must extend DistanceParser.
    • Constructor Summary

      Constructors 
      Constructor Description
      Par()  
    • Field Detail

      • MATRIX_ID

        public static final elki.utilities.optionhandling.OptionID MATRIX_ID
        Parameter that specifies the name of the distance matrix file.
      • PARSER_ID

        public static final elki.utilities.optionhandling.OptionID PARSER_ID
        Optional parameter to specify the parsers to provide a database, must extend DistanceParser. If this parameter is not set, AsciiDistanceParser is used as parser for all input files.
      • DEFAULTDIST_ID

        public static final elki.utilities.optionhandling.OptionID DEFAULTDIST_ID
        Optional parameter to specify the distance to return when no distance was given in the file. Defaults to infinity.
      • matrixfile

        protected java.net.URI matrixfile
        Input file.
      • defaultDistance

        protected float defaultDistance
        Distance to return when not defined otherwise.
    • Constructor Detail

      • Par

        public Par()
    • Method Detail

      • configure

        public void configure​(elki.utilities.optionhandling.parameterization.Parameterization config)
        Specified by:
        configure in interface elki.utilities.optionhandling.Parameterizer