Interface FvGenerator
- All Superinterfaces:
DescriptorGenerator<FloatVectorDescriptor>
,DescriptorSerializer<FloatVectorDescriptor>
,com.chemaxon.descriptors.metrics.FloatVectorMetricFactory<DescriptorComparator<FloatVectorDescriptor>>
,Guarded
,MetricFactory<DescriptorComparator<FloatVectorDescriptor>>
,Serializable
@Beta
@PublicAPI
public interface FvGenerator
extends DescriptorGenerator<FloatVectorDescriptor>, com.chemaxon.descriptors.metrics.FloatVectorMetricFactory<DescriptorComparator<FloatVectorDescriptor>>
Generator for generic binary vector descriptors.
Note that method DescriptorGenerator.generateDescriptor(chemaxon.struc.Molecule)
throws
UnsupportedOperationException
Note that unguarded form is not further defined since unguarded form depends on parameterization of the descriptor (precision, compression). Efficient unguarded form handling for various representations are covered.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.metrics.FloatVectorMetricFactory
com.chemaxon.descriptors.metrics.FloatVectorMetricFactory.ToLinenote<C extends Object>
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.common.Guarded
Guarded.EnsureThat, Guarded.New
-
Method Summary
Modifier and TypeMethodDescriptionfromFloats
(float[] floats) Create a descriptor from a custom representation.default FloatVectorDescriptor
fromFloats
(List<Float> floats) Create a descriptor from a custom representation.getFloatMetricsComparator
(FloatVectorMetrics comparator) Deprecated.Methods inherited from interface com.chemaxon.descriptors.common.DescriptorGenerator
comparisonContextFactory, defaultComparison, generateDescriptor, getBareDescriptor, getDefaultComparator, getParameters
Methods inherited from interface com.chemaxon.descriptors.common.DescriptorSerializer
fromByteArray, fromString, serializerIsEqualWith, toByteArray, toString
Methods inherited from interface com.chemaxon.descriptors.metrics.FloatVectorMetricFactory
forFloatMetrics, forTversky, forTverskyCoefficients
Methods inherited from interface com.chemaxon.descriptors.common.Guarded
getGuardObject
Methods inherited from interface com.chemaxon.descriptors.metrics.MetricFactory
comparisonLinenote, defaultComparison
-
Method Details
-
fromFloats
Create a descriptor from a custom representation.- Parameters:
floats
- Values to represent- Returns:
- Descriptor representing the given values.
- Throws:
IllegalArgumentException
- when given array length differs from the represented descriptor length specified byFvParameters.getLength()
-
fromFloats
Create a descriptor from a custom representation.- Parameters:
floats
- Values to represent- Returns:
- Descriptor representing the given values.
- Throws:
IllegalArgumentException
- when given array length differs from the represented descriptor length specified byFvParameters.getLength()
-
getFloatMetricsComparator
@Deprecated DescriptorComparator<FloatVectorDescriptor> getFloatMetricsComparator(FloatVectorMetrics comparator) Deprecated.UseFloatVectorMetricFactory.forFloatMetrics(com.chemaxon.descriptors.metrics.FloatVectorMetrics)
.Deprecated comparison method kept for compatibility reasons.- Parameters:
comparator
- Metrics- Returns:
- Comparator
-
FloatVectorMetricFactory.forFloatMetrics(com.chemaxon.descriptors.metrics.FloatVectorMetrics)
.