sisl.mixing.BaseWeightMixer

class sisl.mixing.BaseWeightMixer(weight: float | int = 0.2)

Bases: BaseMixer

Base class mixer

Methods

set_weight(weight)

Set a new weight for this mixer

Attributes

weight

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

abstract __call__(f: T, df: T, *args: Any, **kwargs: Any) T

Mix quantities based on arguments

set_weight(weight: float | int)[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: float | int

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