f08a04816a9f88ab7b0089d3e3be7d36accb8796,skbio/math/stats/spatial.py,,_normalize,#Any#,180

Before Change


    
    result = np.array(mtx, "d")
    num_pts, num_dims = np.shape(result)
    mag = np.trace(np.dot(result, np.transpose(result)))
    norm = np.sqrt(mag)
    result /= norm
    return result

After Change



    
    mtx = np.asarray(mtx, dtype=float)
    return mtx / np.linalg.norm(mtx)


def _match_points(mtx1, mtx2):
    Returns a transformed mtx2 that matches mtx1.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: f08a04816a9f88ab7b0089d3e3be7d36accb8796
Time: 2014-07-22
Author: argriffi@ncsu.edu
File Name: skbio/math/stats/spatial.py
Class Name:
Method Name: _normalize


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3620fe5f99e3fbb2db4cf11374a44219a7a83a8a
Time: 2020-05-15
Author: joao.ac.carvalho@gmail.com
File Name: mushroom_rl/solvers/lqr.py
Class Name:
Method Name: compute_lqg_V


Project Name: deepfakes/faceswap
Commit Name: e58fd535d582f580d48d9d41854ad5ad982ade15
Time: 2020-03-06
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/align/cv2_dnn.py
Class Name: Align
Method Name: pad_image