GaussianVariable.setMu
- GaussianVariable.setMu(mu)
Set the mean of the variable, or the intercept of its equation when the variable has parents in a CLG.
- Parameters:
mu (
float) – The new mean (or intercept) of the variable.
Example
import pyagrum.clg as gclg
v = gclg.GaussianVariable("X", 1.5, 0.3)
v.setMu(-2)
v.mu()
# -2
Class