public class BinaryLongComparisonContextFactory extends Object implements BinaryVectorComparisonContextFactory<long[]>
Guarded.EnsureThat, Guarded.New
BinaryVectorMetricFactory.ToLinenote<C>
Constructor and Description |
---|
BinaryLongComparisonContextFactory(int bitCount,
DescriptorSerializer<BinaryVectorDescriptor> serializer)
Instantiate.
|
public BinaryLongComparisonContextFactory(int bitCount, DescriptorSerializer<BinaryVectorDescriptor> serializer)
bitCount
- Fingerprint length in bitsserializer
- Associated serializerpublic Class<? extends MetricFactory> metricFactoryClass()
ComparisonContextFactory
Description
annotation.metricFactoryClass
in interface ComparisonContextFactory<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>
public ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]> defaultComparison()
MetricFactory
defaultComparison
in interface MetricFactory<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>>
public ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]> forBinaryMetrics(BinaryMetrics metric)
BinaryVectorMetricFactory
forBinaryMetrics
in interface BinaryVectorMetricFactory<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>>
metric
- binary metricpublic ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]> forTverskyCoefficients(double coeffQuery, double coeffTarget)
BinaryVectorMetricFactory
forTverskyCoefficients
in interface BinaryVectorMetricFactory<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>>
coeffQuery
- Query side coefficientcoeffTarget
- Target side coefficientpublic ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]> forTversky(TverskyParameters parameters)
BinaryVectorMetricFactory
forTversky
in interface BinaryVectorMetricFactory<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>>
parameters
- parameters for the comparatorpublic Object getGuardObject()
Guarded
This method is intended to use only for ensuring the compatibility of manipulated objects.
Implementations might use the associated DescriptorGenerator
or DescriptorParameters
reference as
the guard object, however it is a non recommended practice to use this method to access the associated generator
to perform further operations on it.
getGuardObject
in interface Guarded
null
.public DescriptorSerializer<BinaryVectorDescriptor> descriptorSerializer()
ComparisonContextFactory
descriptorSerializer
in interface ComparisonContextFactory<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>
public Linenote<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>> comparisonLinenote()
MetricFactory
comparisonLinenote
in interface MetricFactory<ComparisonContext<DescriptorComparator<BinaryVectorDescriptor>,BinaryVectorDescriptor,long[]>>