Class FvParameters.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructor with default settings.
      • Builder

        public Builder​(FvParameters parameters)
        Construct to represent the state of a parameter object instance.
        Parameters:
        parameters - Parameter object
    • Method Detail

      • length

        public FvParameters.Builder length​(int 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

        public FvParameters.Builder sparseCompression​(FvParameters.SparseCompression sparseCompression)
        Set compression of sparse vectors.
        Parameters:
        sparseCompression - Compression for sparse vectors
        Returns:
        Reference to this builder
      • scaledMin

        public FvParameters.Builder scaledMin​(double 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

        public FvParameters.Builder scaledMax​(double 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