Package chemaxon.descriptors.scalars
Class HBParameters
java.lang.Object
chemaxon.descriptors.MDParameters
chemaxon.descriptors.SDParameters
chemaxon.descriptors.scalars.HBParameters
Manages parameters for the 
HDon and HAcc scalar
 descriptor classes.
 The native format of the parameter configuration is XML.- Since:
- JChem 2.2
- 
Field SummaryFieldsFields inherited from class chemaxon.descriptors.MDParametersasymmetryFactors, 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 SummaryConstructorsConstructorDescriptionCreates an empty object.HBParameters(File configFile) Creates a new object based on a given configuration file.HBParameters(String XMLconfig) Creates a new object based on a given configuration string.
- 
Method SummaryModifier and TypeMethodDescriptionprotected floatCalculates the descriptor value for the given molecule.protected voidInitializes those data members that depend on the XML configuration but are not directly taken from it.protected voidreadValues(boolean all) Picks relevant parameters values from the DOM tree.toString()Returns the XML configuration in a string.Methods inherited from class chemaxon.descriptors.SDParametersfromFile, fromString, getNumberOfMetrics, getType, init, processDocument, setLengthMethods inherited from class chemaxon.descriptors.MDParametersaddParameters, 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
- 
Field Details- 
DEFAULT_PHpublic static final int DEFAULT_PHdefault values for parameters- See Also:
 
 
- 
- 
Constructor Details- 
HBParameterspublic HBParameters()Creates an empty object. Initializes parameters to default values.
- 
HBParametersCreates a new object based on a given configuration file.- Parameters:
- configFile- XML configuration file
- Throws:
- MDParametersException- missing or bad XML configuration
 
- 
HBParametersCreates a new object based on a given configuration string.- Parameters:
- XMLconfig- XML configuration string
- Throws:
- MDParametersException- missing or bad XML configuration
 
 
- 
- 
Method Details- 
toStringReturns the XML configuration in a string.- Overrides:
- toStringin class- MDParameters
- Returns:
- configuration string in XML format
 
- 
initParametersprotected void initParameters()Description copied from class:SDParametersInitializes those data members that depend on the XML configuration but are not directly taken from it.- Overrides:
- initParametersin class- SDParameters
 
- 
generateCalculates the descriptor value for the given molecule.- Parameters:
- m- input molecule for which the descirptor is calculated
- Returns:
- the value of the descr
- Throws:
- MDGeneratorException
 
- 
readValuesPicks relevant parameters values from the DOM tree.- Overrides:
- readValuesin class- SDParameters
- Parameters:
- all- indicates if the entire document has to be processed in which case the existing configuration is overwritten
- Throws:
- MDParametersException
 
 
-