Module ImportFrom alias alias alias Import alias identifier ImportFrom alias alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Str Assign NameStore BinOpDiv AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Str Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr ListLoad ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Call AttributeLoad NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num NameLoad Call AttributeLoad NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num NameLoad ListLoad UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad ListLoad UnaryOpUSub Call AttributeLoad NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num NameLoad Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Num Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ absolute_import division print_function N/A numpy np numpy.testing TestCase run_module_suite assert_allclose assert_equal assert_almost_equal assert_raises scipy.spatial procrustes ProcrustesTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A creates inputs N/A N/A self data1 N/A N/A np array N/A N/A 1 3 N/A 1 2 N/A 1 1 N/A 2 1 d N/A N/A self data2 N/A N/A np array N/A N/A 4 -2 N/A 4 -4 N/A 4 -6 N/A 2 -6 d N/A N/A self data3 N/A N/A np array N/A N/A 2 4 N/A 2 3 N/A 2 2 N/A 3 2.5 d N/A shiftangle N/A N/A np pi 8 N/A N/A self data4 N/A N/A N/A np array N/A N/A 1 0 N/A 0 1 N/A -1 0 N/A 0 -1 d N/A N/A np sqrt 4 N/A N/A self data5 N/A N/A N/A np array N/A N/A N/A N/A np cos shiftangle N/A N/A np sin shiftangle N/A N/A N/A np cos N/A N/A N/A np pi 2 shiftangle N/A N/A np sin N/A N/A N/A np pi 2 shiftangle N/A N/A N/A N/A np cos shiftangle N/A N/A N/A np sin shiftangle N/A N/A N/A N/A np cos N/A N/A N/A np pi 2 shiftangle N/A N/A N/A np sin N/A N/A N/A np pi 2 shiftangle d N/A N/A np sqrt 4 N/A test_procrustes N/A N/A self N/A N/A N/A N/A a b disparity N/A procrustes N/A self data1 N/A self data2 N/A N/A assert_allclose b a N/A N/A assert_almost_equal disparity 0.0 N/A N/A m4 m5 disp45 N/A procrustes N/A self data4 N/A self data5 N/A N/A assert_equal m4 N/A self data4 N/A N/A m1 m3 disp13 N/A procrustes N/A self data1 N/A self data3 N/A test_procrustes2 N/A N/A self N/A N/A N/A N/A m1 m3 disp13 N/A procrustes N/A self data1 N/A self data3 N/A N/A m3_2 m1_2 disp31 N/A procrustes N/A self data3 N/A self data1 N/A N/A assert_almost_equal disp13 disp31 N/A rand1 N/A N/A np array N/A N/A 2.61955202 0.30522265 0.55515826 N/A 0.41124708 -0.03966978 -0.31854548 N/A 0.91910318 1.39451809 -0.15295084 N/A 2.00452023 0.50150048 0.29485268 N/A 0.09453595 0.67528885 0.03283872 N/A 0.07015232 2.18892599 -1.67266852 N/A 0.65029688 1.60551637 0.80013549 N/A -0.6607528 0.53644208 0.17033891 N/A rand3 N/A N/A np array N/A N/A 0.0809969 0.09731461 -0.173442 N/A -1.84888465 -0.92589646 -1.29335743 N/A 0.67031855 -1.35957463 0.41938621 N/A 0.73967209 -0.20230757 0.52418027 N/A 0.17752796 0.09065607 0.29827466 N/A 0.47999368 -0.88455717 -0.57547934 N/A -0.11486344 -0.12608506 -0.3395779 N/A -0.86106154 -0.28687488 0.9644429 N/A N/A res1 res3 disp13 N/A procrustes rand1 rand3 N/A N/A res3_2 res1_2 disp31 N/A procrustes rand3 rand1 N/A N/A assert_almost_equal disp13 disp31 N/A test_procrustes_shape_mismatch N/A N/A self N/A N/A N/A N/A assert_raises ValueError procrustes N/A N/A np array N/A N/A 1 2 N/A 3 4 N/A N/A np array N/A N/A 5 6 7 N/A 8 9 10 N/A test_procrustes_empty_rows_or_cols N/A N/A self N/A N/A N/A empty N/A N/A np array N/A N/A N/A N/A assert_raises ValueError procrustes empty empty N/A test_procrustes_no_variation N/A N/A self N/A N/A N/A N/A assert_raises ValueError procrustes N/A N/A np array N/A N/A 42 42 N/A 42 42 N/A N/A np array N/A N/A 45 45 N/A 45 45 N/A test_procrustes_bad_number_of_dimensions N/A N/A self N/A N/A N/A N/A assert_raises ValueError procrustes N/A N/A np array N/A 1 1 2 3 5 8 N/A N/A np array N/A N/A 1 2 N/A 3 4 N/A N/A assert_raises ValueError procrustes N/A N/A np array N/A 1 1 2 3 5 8 N/A N/A np array N/A 1 1 2 3 5 8 N/A N/A assert_raises ValueError procrustes N/A N/A np array 7 N/A N/A np array 11 N/A N/A assert_raises ValueError procrustes N/A N/A np array N/A N/A N/A 11 N/A 7 N/A N/A np array N/A N/A N/A 5 13 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite