Class CfpParameters.Builder
java.lang.Object
com.chemaxon.descriptors.fingerprints.cfp.CfpParameters.Builder
- All Implemented Interfaces:
ParameterBuilder<CfpParameters>
- Enclosing class:
- CfpParameters
Builder class for the immutable parameter object.
-
Constructor Summary
ConstructorDescriptionBuilder()
Constructor with default settings.Builder
(CfpParameters parameters) Constructor based on a parameter object. -
Method Summary
Modifier and TypeMethodDescriptionbitsPerPattern
(int bitsPerPattern) Set bits per pattern.bondCount
(int bondCount) Set bond count to consider.build()
Constructs an immutable instance of T.length
(int length) Set fingerprint length, the bit count of the folded binary fingerprint representation.rings
(boolean rings) Set rings parameter.
-
Constructor Details
-
Builder
public Builder()Constructor with default settings. -
Builder
Constructor based on a parameter object.- Parameters:
parameters
- Parameter object
-
-
Method Details
-
bondCount
Set bond count to consider.The maximum length of consecutive bonds in the linear paths that are considered during the fragmentation of the molecule.
- Parameters:
bondCount
- Bond count parameter to set. Use zero to consider no bonds, just atoms- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set diameter is a negative number
-
length
Set fingerprint length, the bit count of the folded binary fingerprint representation.- Parameters:
length
- new length- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set length is not a positive number, or not multiply of 32
-
bitsPerPattern
Set bits per pattern.The number of bits used to code each pattern in the hashed binary vector representation.
- Parameters:
bitsPerPattern
- Bits per pattern parameter- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when parameter's value is less than one
-
rings
Set rings parameter.When
true
fingerprint bits are calculated for individual rings up to a certain size limit.- Parameters:
rings
- Rings parameter- Returns:
- Reference to this builder
-
build
Description copied from interface:ParameterBuilder
Constructs an immutable instance of T.- Specified by:
build
in interfaceParameterBuilder<CfpParameters>
- Returns:
- An immutable instance of T
-