@Beta @PublicAPI public interface CfpGenerator extends DescriptorGenerator<BinaryVectorDescriptor>, BinaryVectorMetricFactory<CfpComparator>
Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Guarded.EnsureThat, Guarded.New
BinaryVectorMetricFactory.ToLinenote<C>
Modifier and Type | Method and Description |
---|---|
BinaryLongComparisonContextFactory |
comparisonContextFactory()
Get an unguarded context factory.
|
Cfp |
generateDescriptor(Molecule m)
Calculates the associated descriptor for the given Molecule.
|
CfpComparator |
getBinaryMetricsComparator(BinaryMetrics metrics)
|
CfpComparator |
getDefaultComparator()
Deprecated.
|
CfpParameters |
getParameters()
Gets the parameter object.
|
CfpComparator |
getTverskyComparator(double coeffQuery,
double coeffTarget)
Deprecated.
|
CfpComparator |
getTverskyComparator(TverskyParameters tverskyParamaters)
|
defaultComparison, getBareDescriptor
fromByteArray, fromString, serializerIsEqualWith, toByteArray, toString
getGuardObject
forBinaryMetrics, forTversky, forTverskyCoefficients
comparisonLinenote, defaultComparison
@Deprecated CfpComparator getDefaultComparator()
DescriptorGenerator
getDefaultComparator
in interface DescriptorGenerator<BinaryVectorDescriptor>
@Deprecated CfpComparator getBinaryMetricsComparator(BinaryMetrics metrics)
BinaryVectorMetricFactory.forBinaryMetrics(com.chemaxon.descriptors.metrics.BinaryMetrics)
metrics
- binary metric@Deprecated CfpComparator getTverskyComparator(TverskyParameters tverskyParamaters)
BinaryVectorMetricFactory.forTversky(com.chemaxon.descriptors.metrics.TverskyParameters)
tverskyParamaters
- parameters for the comparator@Deprecated CfpComparator getTverskyComparator(double coeffQuery, double coeffTarget)
BinaryVectorMetricFactory.forTverskyCoefficients(double, double)
coeffQuery
- Query side coefficientcoeffTarget
- Target side coefficientBinaryLongComparisonContextFactory comparisonContextFactory()
DescriptorGenerator
byte []
serialization based unguarded representation.
Implementations are expected to provide additional factory methods for unguarded and plain descriptor comparators for implemented metrics.
comparisonContextFactory
in interface DescriptorGenerator<BinaryVectorDescriptor>
Cfp generateDescriptor(Molecule m)
DescriptorGenerator
Note that different descriptors/application scenarios might need different structure standardization.
Currently structure standardization is generally not in the scope of the responsibilities of
DescriptorGenerator
to the possible maximal extent.
Since the returned descriptor might contain additional data (reference to input Molecule
, etc) if
it is stored for later comparison it is recommended to use the bare-only representation returned by
DescriptorGenerator.getBareDescriptor(com.chemaxon.descriptors.common.Descriptor)
.
generateDescriptor
in interface DescriptorGenerator<BinaryVectorDescriptor>
m
- Input moleculeDescriptorGenerator.getBareDescriptor(com.chemaxon.descriptors.common.Descriptor)
on either the rich or the
bare representation.CfpParameters getParameters()
DescriptorGenerator
getParameters
in interface DescriptorGenerator<BinaryVectorDescriptor>