Skip to content

Commit

Permalink
tweak HMF documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 17, 2017
1 parent d01de2d commit 68debce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pydl/pydlspec2d/spec1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HMF(object):
output = hmf.solve()
The input spectra should be pre-processed through
:func:`pydl.pydlspec2d.spec2d.combine1fiber`.
:func:`~pydl.pydlspec2d.spec2d.combine1fiber`.
Parameters
----------
Expand All @@ -34,7 +34,7 @@ class HMF(object):
n_iter : :class:`int`, optional
Number of iterations.
seed : :class:`int`, optional.
If set, pass this value to :func:`np.random.seed`.
If set, pass this value to :func:`numpy.random.seed`.
nonnegative : :class:`bool`, optional
Set this to ``True`` to perform nonnegative HMF.
epsilon : :class:`float`, optional
Expand Down Expand Up @@ -121,7 +121,7 @@ def resid(self):
return self.spectra - self.model()

def chi(self):
"""Compute chi, the scaled residual.
"""Compute :math:`\chi`, the scaled residual.
"""
return self.resid() * np.sqrt(self.invvar)

Expand All @@ -133,7 +133,7 @@ def penalty(self):
return self.epsilon * np.sum(np.diff(self.g)**2)

def badness(self):
"""Compute chi**2.
"""Compute :math:`\chi^2`, including possible non-smoothness penalty.
"""
return np.sum(self.chi()**2) + self.penalty()

Expand Down

0 comments on commit 68debce

Please sign in to comment.