24 #include <numeric/random/random.hh>
27 #include <basic/Tracer.hh>
29 #include <utility/vector1.hh>
48 Real const translation_magnitude,
49 Real const rotation_magnitude,
55 for (
Size i=1, i_end = pose.
num_jump(); i<= i_end; ++i ) {
56 if ( mm.
get_jump(i) ) moving_jumps.push_back( i );
59 if ( moving_jumps.empty() ) {
60 T(
"protocols.rigid.rigid_body") <<
"[WARNING] no movable jumps!" << std::endl;
64 int const jump_number( numeric::random::random_element( moving_jumps ) );
65 gaussian_jump_move( pose, jump_number, translation_magnitude, rotation_magnitude, dir );
72 int const jump_number,
73 Real const translation_magnitude,
74 Real const rotation_magnitude,
80 dir = ( numeric::random::uniform() < 0.5 ? -1 : 1 );
82 runtime_assert( dir == 1 || dir == -1 );
84 jump.gaussian_move( dir, translation_magnitude, rotation_magnitude );