@Beta @PublicAPI public final class FvParameters extends Object implements DescriptorParameters, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FvParameters.Builder
Builder for FvParameters.
|
static class |
FvParameters.NumericRepresentation
Representation of the vector coordinates.
|
static class |
FvParameters.SparseCompression
Optimization for sparse vectors.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LENGTH
Default length (dimensions).
|
static FvParameters.NumericRepresentation |
DEFAULT_NUMERIC_REPRESENTATION
Default numeric representation.
|
static double |
DEFAULT_SCALED_MAX
Default max value for scaling.
|
static double |
DEFAULT_SCALED_MIN
Default min value for scaling.
|
static FvParameters.SparseCompression |
DEFAULT_SPARSE_COMPRESSION
Default compression.
|
Constructor and Description |
---|
FvParameters()
Construct with default values.
|
FvParameters(FvParameters.Builder builder)
Constructor based on a builder.
|
Modifier and Type | Method and Description |
---|---|
static FvParameters.Builder |
createNewBuilder()
Construct a builder for this parameter class, initialized to default.
|
FvGenerator |
getDescriptorGenerator()
Return the represented descriptor generator.
|
int |
getLength()
Returns represented fingerprint length (bit count) setting.
|
FvParameters.NumericRepresentation |
getNumericRepresentation()
Numeric representation.
|
double |
getScaledMax()
Max value for scaled fixed point representations.
|
double |
getScaledMin()
Min value for scaled fixed point representations.
|
FvParameters.SparseCompression |
getSparseCompression()
Sparse compression.
|
String |
toString() |
public static final int DEFAULT_LENGTH
public static final FvParameters.NumericRepresentation DEFAULT_NUMERIC_REPRESENTATION
public static final double DEFAULT_SCALED_MIN
public static final double DEFAULT_SCALED_MAX
public static final FvParameters.SparseCompression DEFAULT_SPARSE_COMPRESSION
public FvParameters(FvParameters.Builder builder)
builder
- Builder which current state will be represented.public FvParameters()
public FvGenerator getDescriptorGenerator()
DescriptorParameters
Please note that certain descriptors might provide multiple DescriptorGenerator
implementations for
different descriptor representations. (Consider structure based fingerprints feature list/feature counts/folded
finite binary vector representations.) Such different descriptor generators might be exposed through their
parameters object as multiple factory methods.
getDescriptorGenerator
in interface DescriptorParameters
public static FvParameters.Builder createNewBuilder()
public int getLength()
public FvParameters.NumericRepresentation getNumericRepresentation()
public FvParameters.SparseCompression getSparseCompression()
public double getScaledMax()
public double getScaledMin()