Class LaplaceSmoothingModel
java.lang.Object
co.elastic.clients.elasticsearch.core.search.LaplaceSmoothingModel
- All Implemented Interfaces:
SmoothingModelVariant,JsonpSerializable
@JsonpDeserializable
public class LaplaceSmoothingModel
extends Object
implements SmoothingModelVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<LaplaceSmoothingModel>Json deserializer forLaplaceSmoothingModel -
Method Summary
Modifier and TypeMethodDescriptionSmoothingModel variant kind.final doublealpha()Required - A constant that is added to all counts to balance weights.static LaplaceSmoothingModelvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.core.search.SmoothingModelVariant
_toSmoothingModel
-
Field Details
-
_DESERIALIZER
Json deserializer forLaplaceSmoothingModel
-
-
Method Details
-
of
public static LaplaceSmoothingModel of(Function<LaplaceSmoothingModel.Builder, ObjectBuilder<LaplaceSmoothingModel>> fn) -
_smoothingModelKind
SmoothingModel variant kind.- Specified by:
_smoothingModelKindin interfaceSmoothingModelVariant
-
alpha
public final double alpha()Required - A constant that is added to all counts to balance weights.API name:
alpha -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupLaplaceSmoothingModelDeserializer
protected static void setupLaplaceSmoothingModelDeserializer(ObjectDeserializer<LaplaceSmoothingModel.Builder> op)
-