public static class CfpParameters.Builder extends Object implements ParameterBuilder<CfpParameters>
Constructor and Description |
---|
Builder()
Constructor with default settings.
|
Builder(CfpParameters parameters)
Constructor based on a parameter object.
|
Modifier and Type | Method and Description |
---|---|
CfpParameters.Builder |
bitsPerPattern(int bitsPerPattern)
Set bits per pattern.
|
CfpParameters.Builder |
bondCount(int bondCount)
Set bond count to consider.
|
CfpParameters |
build()
Constructs an immutable instance of T.
|
CfpParameters.Builder |
length(int length)
Set fingerprint length, the bit count of the folded binary fingerprint representation.
|
CfpParameters.Builder |
rings(boolean rings)
Set rings parameter.
|
public Builder()
public Builder(CfpParameters parameters)
parameters
- Parameter objectpublic CfpParameters.Builder bondCount(int bondCount)
The maximum length of consecutive bonds in the linear paths that are considered during the fragmentation of the molecule.
bondCount
- Bond count parameter to set. Use zero to consider no bonds, just atomsIllegalArgumentException
- when the set diameter is a negative numberpublic CfpParameters.Builder length(int length)
length
- new lengthIllegalArgumentException
- when the set length is not a positive number, or not multiply of 32public CfpParameters.Builder bitsPerPattern(int bitsPerPattern)
The number of bits used to code each pattern in the hashed binary vector representation.
bitsPerPattern
- Bits per pattern parameterIllegalArgumentException
- when parameter's value is less than onepublic CfpParameters.Builder rings(boolean rings)
When true
fingerprint bits are calculated for individual rings up to a certain size limit.
rings
- Rings parameterpublic CfpParameters build()
ParameterBuilder
build
in interface ParameterBuilder<CfpParameters>