AffineFun

class negmas.preferences.AffineFun(slope: float, bias: float = 0)[source]

Bases: BaseFun

Attributes Summary

bias

dim

slope

Methods Summary

__call__(x)

Call self as a function.

from_dict(d[, python_class_identifier])

max(input)

min(input)

minmax(input)

scale_by(scale)

shift_by(offset)

to_dict([python_class_identifier])

xml(indx, issue[, bias])

Attributes Documentation

bias: float
dim
slope: float

Methods Documentation

__call__(x: float) float[source]

Call self as a function.

classmethod from_dict(d: dict, python_class_identifier='__python_class__')
max(input: Issue) float
min(input: Issue) float
minmax(input: Issue) tuple[float, float][source]
scale_by(scale: float) AffineFun[source]
shift_by(offset: float) AffineFun[source]
to_dict(python_class_identifier='__python_class__') dict[str, Any]
xml(indx: int, issue: Issue, bias=0.0) str[source]