Class FvParameters.Builder
java.lang.Object
com.chemaxon.descriptors.vectors.floats.FvParameters.Builder
- All Implemented Interfaces:
ParameterBuilder<FvParameters>
- Enclosing class:
- FvParameters
Builder for FvParameters.
-
Constructor Summary
ConstructorDescriptionBuilder()
Constructor with default settings.Builder
(FvParameters parameters) Construct to represent the state of a parameter object instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs an immutable instance of T.length
(int length) Set fingerprint length.numericRepresentation
(FvParameters.NumericRepresentation numericRepresentation) Set numeric representation of vector coordinates.scaledMax
(double scaledMax) Set upper bound for coordinate values used by fixed point backed representation.scaledMin
(double scaledMin) Set lower bound for coordinate values used by fixed point backed representation.sparseCompression
(FvParameters.SparseCompression sparseCompression) Set compression of sparse vectors.
-
Constructor Details
-
Builder
public Builder()Constructor with default settings. -
Builder
Construct to represent the state of a parameter object instance.- Parameters:
parameters
- Parameter object
-
-
Method Details
-
length
Set fingerprint length.- Parameters:
length
- Fingerprint length (number of bits)- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set length is not a positive number
-
numericRepresentation
public FvParameters.Builder numericRepresentation(FvParameters.NumericRepresentation numericRepresentation) Set numeric representation of vector coordinates.- Parameters:
numericRepresentation
- Numeric representation- Returns:
- reference to this builder
-
sparseCompression
Set compression of sparse vectors.- Parameters:
sparseCompression
- Compression for sparse vectors- Returns:
- Reference to this builder
-
scaledMin
Set lower bound for coordinate values used by fixed point backed representation.- Parameters:
scaledMin
- Lower bound for coordinate values- Returns:
- Reference to this builder
-
scaledMax
Set upper bound for coordinate values used by fixed point backed representation.- Parameters:
scaledMax
- Lower bound for coordinate values- Returns:
- Reference to this builder
-
build
Description copied from interface:ParameterBuilder
Constructs an immutable instance of T.- Specified by:
build
in interfaceParameterBuilder<FvParameters>
- Returns:
- An immutable instance of T
-