CLG.setSigma

CLG.setSigma(node, sigma)

Set the standard deviation of a variable.

Parameters:
  • node (int) – The id of the variable.

  • sigma (float) – The new standard deviation of the variable, positive.

Raises:
  • pyagrum.NotFound – if the node is not found in the CLG.

  • ValueError – if sigma is not positive.

Return type:

None

Example

import pyagrum.clg as gclg

clg = gclg.SEM.toclg("""
A = 2[1]
B = 1 + 0.5A[2]
C = 3 + B[1]
""")
clg.setSigma(clg.idFromName("A"), 3)
clg.variable("A").sigma()
# 3

Class

CLG