@Beta public static class TverskyParameters.Builder extends Object implements ParameterBuilder<TverskyParameters>
Constructor and Description |
---|
Builder()
Instantiate builder with default values.
|
Builder(double coeffQuery,
double coeffTarget)
Instantiate with weights.
|
Builder(TverskyParameters parameters)
Instantiate builder based on an actual parameter instance.
|
Modifier and Type | Method and Description |
---|---|
TverskyParameters |
build()
Constructs an immutable instance of T.
|
TverskyParameters.Builder |
coeffQuery(double coeffQuery)
Set query coefficient.
|
TverskyParameters.Builder |
coeffTarget(double coeffTarget)
Set target coefficient.
|
public Builder()
public Builder(double coeffQuery, double coeffTarget)
coeffQuery
- Query side coefficientcoeffTarget
- Target side coefficientpublic Builder(TverskyParameters parameters)
parameters
- Parameters to usepublic TverskyParameters.Builder coeffTarget(double coeffTarget)
coeffTarget
- Target coefficientpublic TverskyParameters.Builder coeffQuery(double coeffQuery)
coeffQuery
- Query coefficientpublic TverskyParameters build()
ParameterBuilder
build
in interface ParameterBuilder<TverskyParameters>