Package com.chemaxon.descriptors.metrics
Class TverskyParameters.Builder
java.lang.Object
com.chemaxon.descriptors.metrics.TverskyParameters.Builder
- All Implemented Interfaces:
ParameterBuilder<TverskyParameters>
- Enclosing class:
- TverskyParameters
@Beta
public static class TverskyParameters.Builder
extends Object
implements ParameterBuilder<TverskyParameters>
Builder for parameter object.
-
Constructor Summary
ConstructorDescriptionBuilder()
Instantiate builder with default values.Builder
(double coeffQuery, double coeffTarget) Instantiate with weights.Builder
(TverskyParameters parameters) Instantiate builder based on an actual parameter instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs an immutable instance of T.coeffQuery
(double coeffQuery) Set query coefficient.coeffTarget
(double coeffTarget) Set target coefficient.
-
Constructor Details
-
Builder
public Builder()Instantiate builder with default values. -
Builder
public Builder(double coeffQuery, double coeffTarget) Instantiate with weights.- Parameters:
coeffQuery
- Query side coefficientcoeffTarget
- Target side coefficient
-
Builder
Instantiate builder based on an actual parameter instance.- Parameters:
parameters
- Parameters to use
-
-
Method Details
-
coeffTarget
Set target coefficient.- Parameters:
coeffTarget
- Target coefficient- Returns:
- Reference to this
-
coeffQuery
Set query coefficient.- Parameters:
coeffQuery
- Query coefficient- Returns:
- Reference to this
-
build
Description copied from interface:ParameterBuilder
Constructs an immutable instance of T.- Specified by:
build
in interfaceParameterBuilder<TverskyParameters>
- Returns:
- An immutable instance of T
-