CosFun

class negmas.preferences.CosFun(multiplier=1.0, bias=0.0, phase=0.0, amplitude=1.0)[source]

Bases: BaseFun

Attributes Summary

amplitude

bias

dim

multiplier

phase

Methods Summary

__call__(x)

Call self as a function.

from_dict(d)

max(input)

rtype:

float

min(input)

rtype:

float

minmax(input)

rtype:

tuple[float, float]

scale_by(scale)

rtype:

CosFun

shift_by(offset)

rtype:

CosFun

to_dict()

rtype:

dict[str, Any]

xml(indx, issue, bias)

rtype:

str

Attributes Documentation

amplitude: float
bias: float
dim
multiplier: float
phase: float

Methods Documentation

__call__(x)[source]

Call self as a function.

classmethod from_dict(d)
max(input)
Return type:

float

min(input)
Return type:

float

minmax(input)[source]
Return type:

tuple[float, float]

scale_by(scale)[source]
Return type:

CosFun

shift_by(offset)[source]
Return type:

CosFun

to_dict()
Return type:

dict[str, Any]

xml(indx, issue, bias)[source]
Return type:

str