14 #include <numeric/xyz.functions.hh>
15 #include <ObjexxFCL/FArray3D.hh>
41 Size resi_neighbors( 0 );
44 double const distance( resi.xyz( resi.nbr_atom() ).
distance( resj.xyz( resj.nbr_atom() ) ) );
45 if(
distance <= distance_threshold ){
49 return resi_neighbors;
55 if(pose.
secstruct(ires)==
'L') wt = wt / 3.0;
63 numeric::xyzTransform<core::Real> & xa,
64 numeric::xyzTransform<core::Real>
const & xb,
68 Stub sa(xa.R,xa.t), sb(xb.R,xb.t);
72 if(score != -12345.0) score = sfxn.
score(
sa, sb );
87 if(score != -12345.0) score = sfxn.
score( xa, xb );
133 return most_is_one? pose1: pose2;
160 for(
Size ir = sres; ir <= eres; ++ir) {
171 for(
Size ir = sres; ir <= eres; ++ir) {
181 for(
Size ir = sres; ir <= eres; ++ir) {
205 int flood_fill3D(
int i,
int j,
int k, ObjexxFCL::FArray3D<double> & grid,
double t) {
206 if( grid(i,j,k) <= t )
return 0;
210 if(i<(
int)grid.size1()) nmark +=
flood_fill3D(i+1,j ,k ,grid,t);
212 if(j<(
int)grid.size2()) nmark +=
flood_fill3D(i ,j+1,k ,grid,t);
214 if(k<(
int)grid.size3()) nmark +=
flood_fill3D(i ,j ,k+1,grid,t);