Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc - fix definition of real_sph_harm functions #1039

Merged
merged 1 commit into from May 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions dipy/reconst/shm.py
Expand Up @@ -203,9 +203,9 @@ def real_sph_harm(m, n, theta, phi):

Where the real harmonic $Y^m_n$ is defined to be:

Real($Y^m_n$) * sqrt(2) if m > 0
$Y^m_n$ if m == 0
Imag($Y^m_n$) * sqrt(2) if m < 0
Imag($Y^m_n$) * sqrt(2) if m > 0
$Y^0_n$ if m = 0
Real($Y^|m|_n$) * sqrt(2) if m < 0

This may take scalar or array arguments. The inputs will be broadcasted
against each other.
Expand Down Expand Up @@ -245,7 +245,7 @@ def real_sym_sh_mrtrix(sh_order, theta, phi):
$Y^m_n$ is defined to be::

Real($Y^m_n$) if m > 0
$Y^m_n$ if m == 0
$Y^0_n$ if m = 0
Imag($Y^|m|_n$) if m < 0

This may take scalar or array arguments. The inputs will be broadcasted
Expand Down Expand Up @@ -291,7 +291,7 @@ def real_sym_sh_basis(sh_order, theta, phi):
be:

Imag($Y^m_n$) * sqrt(2) if m > 0
$Y^m_n$ if m == 0
$Y^0_n$ if m = 0
Real($Y^|m|_n$) * sqrt(2) if m < 0

This may take scalar or array arguments. The inputs will be broadcasted
Expand Down