d8c83117426d14a996d233ad0b43a1f3041b54bb,astroML/stats/_point_statistics.py,,fit_bivariate_normal,#,192

Before Change



    // There is a degeneracy.  Given our input, we set sigma1 > sigma2,
    //  so alpha must be positive
    alpha = abs(alpha)

    sigma1 = np.sqrt((0.5 * (sigma_x ** 2 + sigma_y ** 2)
                      + np.sqrt(0.25 * (sigma_x ** 2 - sigma_y ** 2) ** 2
                                + sigma_xy ** 4)))

After Change



    // There is a degeneracy.  Given our input, we set sigma1 > sigma2,
    //  so alpha must be positive
    if alpha < 0:
        alpha += 0.5 * np.pi

    sigma1 = np.sqrt((0.5 * (sigma_x ** 2 + sigma_y ** 2)
                      + np.sqrt(0.25 * (sigma_x ** 2 - sigma_y ** 2) ** 2
                                + sigma_xy ** 4)))
    sigma2 = np.sqrt((0.5 * (sigma_x ** 2 + sigma_y ** 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: astroML/astroML
Commit Name: d8c83117426d14a996d233ad0b43a1f3041b54bb
Time: 2013-04-16
Author: vanderplas@astro.washington.edu
File Name: astroML/stats/_point_statistics.py
Class Name:
Method Name: fit_bivariate_normal


Project Name: erichson/ristretto
Commit Name: 83579d7761d6bc995e1e6e90cd376191e648081e
Time: 2018-03-07
Author: Benli11@users.noreply.github.com
File Name: ristretto/nmf/rnmf_fhals.py
Class Name:
Method Name: rnmf_fhals


Project Name: librosa/librosa
Commit Name: 41d8ba93f69e35306de63489abcfcd4f6430c3c4
Time: 2015-06-22
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: waveplot