spyrit.core.meas.DynamicLinear.build_H_dyn_pinv
- DynamicLinear.build_H_dyn_pinv(reg: str = 'L1', eta: float = 0.001) None[source]
Computes the pseudo-inverse of the dynamic measurement matrix H_dyn and stores it in the attribute H_dyn_pinv.
This method supposes that the dynamic measurement matrix H_dyn has already been set using the method build_H_dyn(). An error will be raised if H_dyn has not been set yet.
- Args:
reg(str): Regularization method. Can be either ‘L1’ or ‘L2’. Defaults to ‘L1’.eta(float): Regularization parameter. Defaults to 1e-6.- Raises:
AttributeError: If the dynamic measurement matrix H_dyn has not been set yet.