sisl.mixing.BaseWeightMixer

class sisl.mixing.BaseWeightMixer(weight=0.2)

Bases: BaseMixer

Base class mixer

Methods

set_weight(weight)

Set a new weight for this mixer

weight

This mixers mixing weight, the weight is the fractional contribution of the derivative

abstract __call__(f, df, *args, **kwargs)

Mix quantities based on arguments

Return type

TypeVar(T)

__init__(weight=0.2)[source]
set_weight(weight)[source]

Set a new weight for this mixer

Parameters

weight (float) – the new weight for this mixer, it must be bigger than 0

property weight: Union[float, int]

This mixers mixing weight, the weight is the fractional contribution of the derivative