sisl.mixing.BaseWeightMixer

class sisl.mixing.BaseWeightMixer

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, df, *args, **kwargs)

Mix quantities based on arguments

Parameters:
  • f (T)

  • df (T)

  • args (Any)

  • kwargs (Any)

Return type:

T

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: float | int

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