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.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.Methods inherited from interface com.chemaxon.descriptors.common.DescriptorGenerator
comparisonContextFactory, defaultComparison, generateDescriptor, getBareDescriptor, 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
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()
-