@PublicAPI public class LDParameters extends SDParameters
LogD
scalar descriptor class.
The native format of the parameter configuration is XML.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LOWER_BOUND
default values for parameters
|
static int |
DEFAULT_PH |
static int |
DEFAULT_STEP_SIZE |
static int |
DEFAULT_UPPER_BOUND |
asymmetryFactors, cellSize, cellwiseWeights, configFilePath, currentMetricIndex, data, decForm, DEFAULT_ASYMMETRY_FACTOR, DEFAULT_OUTPUT_PRECISION, DEFAULT_SCALE_FACTOR, DEFAULT_WEIGHT, defaultWeight, document, generator, internalSize, length, md, metricIndexes, normalized, outputPrecision, parametrizedMetricNodes, parametrizedMetrics, parametrizedMetricsNode, scaleFactors, screeningConfigurationNode, similarityNode, standardizer, standardizerConfigurationNode, thresholds, tverskyA, tverskyB, weights
Constructor and Description |
---|
LDParameters()
Creates an empty object.
|
LDParameters(java.io.File configFile)
Creates a new object based on a given configuration file.
|
LDParameters(java.lang.String XMLconfig)
Creates a new object based on a given configuration string.
|
Modifier and Type | Method and Description |
---|---|
protected float |
generate(Molecule m) |
protected void |
initParameters()
Initializes those data members that depend on the XML configuration but
are not directly taken from it.
|
protected void |
readValues(boolean all)
Picks parameters values from the DOM tree.
|
java.lang.String |
toString()
Returns the XML configuration in a string.
|
fromFile, fromString, getNumberOfMetrics, getType, init, processDocument, setLength
addParameters, addParameters, addParametrizedMetric, addParametrizedMetricNode, addParametrizedMetricsNode, appendParametrizedMetric, checkDocumentVersion, getAsymmetryFactor, getCellSize, getCurrentMetricIndex, getData, getDecForm, getDefaultDocumentFrame, getDefaultStandardizerConfiguration, getDescriptorTypeName, getInternalMetricIndex, getInternalSize, getLength, getMetricIndex, getMetricName, getMetricName, getNumberOfWeights, getNumberOfWeights, getScaleFactor, getScalingHypothesis, getScreeningConfigurationString, getThreshold, getThreshold, getTverskyAlpha, getTverskyBeta, getWeights, importNodes, isAsymmetric, isCellwiseWeights, isNormalized, isScaled, isStandardizationMandatory, isWeighted, readFromXmlFile, readFromXmlString, readMetricParameters, readMetricWeights, setAsymmetryFactor, setCellSize, setCellwiseWeights, setCreateStatistics, setCurrentParametrizedMetric, setNormalized, setOutputPrecision, setParameters, setParameters, setScaleFactor, setScalingHypothesis, setThreshold, setWeights, standardize, toString, writeMetricParameter
public static final int DEFAULT_LOWER_BOUND
public static final int DEFAULT_UPPER_BOUND
public static final int DEFAULT_STEP_SIZE
public static final int DEFAULT_PH
public LDParameters()
public LDParameters(java.io.File configFile) throws MDParametersException
configFile
- XML configuration fileMDParametersException
- missing or bad XML configurationpublic LDParameters(java.lang.String XMLconfig) throws MDParametersException
XMLconfig
- XML configuration stringMDParametersException
- missing or bad XML configurationpublic java.lang.String toString()
toString
in class MDParameters
protected void initParameters()
SDParameters
initParameters
in class SDParameters
protected float generate(Molecule m) throws MDGeneratorException
MDGeneratorException
protected void readValues(boolean all) throws MDParametersException
readValues
in class SDParameters
all
- indicates if the entire document has to be processed
in which case the existing configuration is overwrittenMDParametersException