Skip to content

Commit 4c4d62f

Browse files
author
Matthias Koeppe
committed
src/sage/stats/hmm/chmm.pyx: Fix docstring indentation
1 parent aecbedc commit 4c4d62f

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/sage/stats/hmm/chmm.pyx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sage.doctest: optional - numpy
1+
# sage.doctest: needs numpy
22
r"""
33
Continuous Emission Hidden Markov Models
44
@@ -164,26 +164,25 @@ cdef class GaussianHiddenMarkovModel(HiddenMarkovModel):
164164
165165
INPUT:
166166
167-
- ``A`` -- a list of lists or a square `N \times N` matrix, whose
168-
`(i,j)` entry gives the probability of transitioning from
169-
state `i` to state `j`.
167+
- ``A`` -- a list of lists or a square `N \times N` matrix, whose
168+
`(i,j)` entry gives the probability of transitioning from
169+
state `i` to state `j`.
170170
171-
- ``B`` -- a list of `N` pairs ``(mu, std)``, where if ``B[i]=(mu,std)``,
172-
then the probability distribution associated with state `i`
173-
normal with mean ``mu`` and standard deviation ``std``.
171+
- ``B`` -- a list of `N` pairs ``(mu, std)``, where if ``B[i]=(mu,std)``,
172+
then the probability distribution associated with state `i`
173+
normal with mean ``mu`` and standard deviation ``std``.
174174
175-
- ``pi`` -- the probabilities of starting in each initial
176-
state, i.e., ``pi[i]`` is the probability of starting in
177-
state `i`.
175+
- ``pi`` -- the probabilities of starting in each initial
176+
state, i.e., ``pi[i]`` is the probability of starting in
177+
state `i`.
178178
179-
- ``normalize`` -- bool (default: ``True``); if given, input is
180-
normalized to define valid probability distributions,
181-
e.g., the entries of `A` are made nonnegative and the rows
182-
sum to 1.
179+
- ``normalize`` -- bool (default: ``True``); if given, input is
180+
normalized to define valid probability distributions,
181+
e.g., the entries of `A` are made nonnegative and the rows
182+
sum to 1.
183183
184184
EXAMPLES::
185185
186-
187186
sage: hmm.GaussianHiddenMarkovModel([[.1,.9],[.5,.5]], [(1,1), (-1,1)], [.5,.5])
188187
Gaussian Hidden Markov Model with 2 States
189188
Transition matrix:
@@ -1422,7 +1421,7 @@ cdef class GaussianMixtureHiddenMarkovModel(GaussianHiddenMarkovModel):
14221421
sage: m.emission_parameters()
14231422
[0.4*N(0.0,1.0) + 0.6*N(1.0,0.1),
14241423
1.0*N(0.0,1.0)]
1425-
r"""
1424+
"""
14261425
if not isinstance(obs, TimeSeries):
14271426
obs = TimeSeries(obs)
14281427
cdef TimeSeries _obs = obs

0 commit comments

Comments
 (0)