@@ -292,15 +292,17 @@ def residual(self, p=[]):
292292 ----------
293293 p
294294 The list of current variable values, provided in the same order
295- as the ' _parameters' list. If p is an empty iterable (default),
296- then it is assumed that the parameters have already been
297- updated in some other way, and the explicit update within this
298- function is skipped.
295+ as the `` _parameters`` list. If ``p`` is an empty iterable
296+ (default), then it is assumed that the parameters have already
297+ been updated in some other way, and the explicit update within
298+ this function is skipped.
299299
300+ Notes
301+ -----
300302 The residual is by default the weighted concatenation of each
301- FitContribution's residual, plus the value of each restraint. The array
302- returned, denoted chiv, is such that
303- dot(chiv, chiv) = chi^2 + restraints.
303+ :class:` FitContribution` residual, plus the value of each restraint.
304+ The returned array `` chiv`` satisfies
305+ `` dot(chiv, chiv) = chi^2 + restraints`` .
304306 """
305307
306308 # Prepare, if necessary
@@ -343,15 +345,17 @@ def scalarResidual(self, p=[]):
343345 ----------
344346 p
345347 The list of current variable values, provided in the same order
346- as the ' _parameters' list. If p is an empty iterable (default),
347- then it is assumed that the parameters have already been
348- updated in some other way, and the explicit update within this
349- function is skipped.
348+ as the `` _parameters`` list. If ``p`` is an empty iterable
349+ (default), then it is assumed that the parameters have already
350+ been updated in some other way, and the explicit update within
351+ this function is skipped.
350352
353+ Notes
354+ -----
351355 The residual is by default the weighted concatenation of each
352- FitContribution's residual, plus the value of each restraint. The array
353- returned, denoted chiv, is such that
354- dot(chiv, chiv) = chi^2 + restraints.
356+ :class:` FitContribution` residual, plus the value of each restraint.
357+ The returned array , denoted `` chiv`` , is such that
358+ `` dot(chiv, chiv) = chi^2 + restraints`` .
355359 """
356360 chiv = self .residual (p )
357361 return dot (chiv , chiv )
0 commit comments