Interface CfpGenerator
-
- All Superinterfaces:
BinaryVectorMetricFactory<CfpComparator>
,DescriptorGenerator<BinaryVectorDescriptor>
,DescriptorSerializer<BinaryVectorDescriptor>
,Guarded
,MetricFactory<CfpComparator>
,Serializable
@Beta @PublicAPI public interface CfpGenerator extends DescriptorGenerator<BinaryVectorDescriptor>, BinaryVectorMetricFactory<CfpComparator>
Calculates CFP (fixed length folded binary vector representation) descriptors.Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.metrics.BinaryVectorMetricFactory
BinaryVectorMetricFactory.ToLinenote<C>
-
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.common.Guarded
Guarded.EnsureThat, Guarded.New
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description com.chemaxon.descriptors.common.comparison.impl.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)
-
Methods inherited from interface com.chemaxon.descriptors.metrics.BinaryVectorMetricFactory
forBinaryMetrics, forTversky, forTverskyCoefficients
-
Methods inherited from interface com.chemaxon.descriptors.common.DescriptorGenerator
defaultComparison, getBareDescriptor
-
Methods inherited from interface com.chemaxon.descriptors.common.DescriptorSerializer
fromByteArray, fromString, serializerIsEqualWith, toByteArray, toString
-
Methods inherited from interface com.chemaxon.descriptors.common.Guarded
getGuardObject
-
Methods inherited from interface com.chemaxon.descriptors.metrics.MetricFactory
comparisonLinenote, defaultComparison
-
-
-
-
Method Detail
-
getDefaultComparator
@Deprecated CfpComparator getDefaultComparator()
Deprecated.Description copied from interface:DescriptorGenerator
Gets the default comparator object.- Specified by:
getDefaultComparator
in interfaceDescriptorGenerator<BinaryVectorDescriptor>
- Returns:
- default comparator
-
getBinaryMetricsComparator
@Deprecated CfpComparator getBinaryMetricsComparator(BinaryMetrics metrics)
Deprecated.Creates a new Comparator instance according to the given metric.- Parameters:
metrics
- binary metric- Returns:
- a comparator object
-
getTverskyComparator
@Deprecated CfpComparator getTverskyComparator(TverskyParameters tverskyParamaters)
Deprecated.Creates a new Comparator instance according to the given Tversky metric parameters.- Parameters:
tverskyParamaters
- parameters for the comparator- Returns:
- a comparator object
-
getTverskyComparator
@Deprecated CfpComparator getTverskyComparator(double coeffQuery, double coeffTarget)
Deprecated.Creates a new Comparator instance according to the given Tversky metric parameters.- Parameters:
coeffQuery
- Query side coefficientcoeffTarget
- Target side coefficient- Returns:
- a comparator object
-
comparisonContextFactory
com.chemaxon.descriptors.common.comparison.impl.BinaryLongComparisonContextFactory comparisonContextFactory()
Description copied from interface:DescriptorGenerator
Get an unguarded context factory. Implementations are supposed to provide space/processing efficient unguarded representation if applicable. Otherwise it is possible to exposebyte []
serialization based unguarded representation.Implementations are expected to provide additional factory methods for unguarded and plain descriptor comparators for implemented metrics.
- Specified by:
comparisonContextFactory
in interfaceDescriptorGenerator<BinaryVectorDescriptor>
- Returns:
- an unguarded context factory
-
generateDescriptor
Cfp generateDescriptor(Molecule m)
Description copied from interface:DescriptorGenerator
Calculates the associated descriptor for the given Molecule.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 byDescriptorGenerator.getBareDescriptor(com.chemaxon.descriptors.common.Descriptor)
.- Specified by:
generateDescriptor
in interfaceDescriptorGenerator<BinaryVectorDescriptor>
- Parameters:
m
- Input molecule- Returns:
- The calculated descriptor. If the implementation discriminates between rich and bare types then the
rich type is returned, otherwise the bare type. Note that the bare type is always available using
DescriptorGenerator.getBareDescriptor(com.chemaxon.descriptors.common.Descriptor)
on either the rich or the bare representation.
-
getParameters
CfpParameters getParameters()
Description copied from interface:DescriptorGenerator
Gets the parameter object.- Specified by:
getParameters
in interfaceDescriptorGenerator<BinaryVectorDescriptor>
- Returns:
- paramater obj
-
-