public static class FvParameters.Builder extends Object implements ParameterBuilder<FvParameters>
Constructor and Description |
---|
Builder()
Constructor with default settings.
|
Builder(FvParameters parameters)
Construct to represent the state of a parameter object instance.
|
Modifier and Type | Method and Description |
---|---|
FvParameters |
build()
Constructs an immutable instance of T.
|
FvParameters.Builder |
length(int length)
Set fingerprint length.
|
FvParameters.Builder |
numericRepresentation(FvParameters.NumericRepresentation numericRepresentation)
Set numeric representation of vector coordinates.
|
FvParameters.Builder |
scaledMax(double scaledMax)
Set upper bound for coordinate values used by fixed point backed representation.
|
FvParameters.Builder |
scaledMin(double scaledMin)
Set lower bound for coordinate values used by fixed point backed representation.
|
FvParameters.Builder |
sparseCompression(FvParameters.SparseCompression sparseCompression)
Set compression of sparse vectors.
|
public Builder()
public Builder(FvParameters parameters)
parameters
- Parameter objectpublic FvParameters.Builder length(int length)
length
- Fingerprint length (number of bits)IllegalArgumentException
- when the set length is not a positive numberpublic FvParameters.Builder numericRepresentation(FvParameters.NumericRepresentation numericRepresentation)
numericRepresentation
- Numeric representationpublic FvParameters.Builder sparseCompression(FvParameters.SparseCompression sparseCompression)
sparseCompression
- Compression for sparse vectorspublic FvParameters.Builder scaledMin(double scaledMin)
scaledMin
- Lower bound for coordinate valuespublic FvParameters.Builder scaledMax(double scaledMax)
scaledMax
- Lower bound for coordinate valuespublic FvParameters build()
ParameterBuilder
build
in interface ParameterBuilder<FvParameters>