public static class FileBasedSparseFloatDistanceFunction.Parameterizer extends AbstractParameterizer
Modifier and Type | Field and Description |
---|---|
static 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 OptionID |
MATRIX_ID
Parameter that specifies the name of the distance matrix file.
|
protected java.io.File |
matrixfile
Input file.
|
protected DistanceParser |
parser
Parser for input file.
|
static OptionID |
PARSER_ID
Optional parameter to specify the parsers to provide a database, must
extend
DistanceParser . |
Constructor and Description |
---|
Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected FileBasedSparseFloatDistanceFunction |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID MATRIX_ID
public static final OptionID PARSER_ID
DistanceParser
. If this parameter is not set,
AsciiDistanceParser
is used as parser for all input files.public static final OptionID DEFAULTDIST_ID
protected java.io.File matrixfile
protected DistanceParser parser
protected float defaultDistance
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractParameterizer
config
- Parameterization to add options to.protected FileBasedSparseFloatDistanceFunction makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer
Copyright © 2019 ELKI Development Team. License information.