sisl.mixing.LinearMixer
- class sisl.mixing.LinearMixer
Bases:
BaseHistoryWeightMixerLinear mixing
The linear mixing is solely defined using a weight, and the resulting functional may then be calculated via:
\[\mathbf f^{i+1} = \mathbf f^i + w \delta \mathbf f^i\]- Parameters:
weight (
float, optional) – mixing weight
Methods
set_history(history)Replace the current history in the mixer with a new one
set_weight(weight)Set a new weight for this mixer
Attributes
History object tracked by this mixer
This mixers mixing weight, the weight is the fractional contribution of the derivative
- __call__(f, df, append=True)[source]
Calculate a new variable \(\mathbf f'\) using input and output of the functional
- set_history(history)
Replace the current history in the mixer with a new one
- set_weight(weight)
Set a new weight for this mixer