Skip to content

Commit

Permalink
Fix loop logic of RDFProtonDescriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ujihara committed Nov 10, 2018
1 parent 6efcedf commit accdac3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,13 @@ && getIfBondIsNotRotatable(mol,
IBond theInCycloexBond;
limitInf = 0;
limitSup = Math.PI;
step = (limitSup - limitInf) / 13;
position = 0;
smooth = -2.86;
angle = 0;
int yaCounter = 0;
List<IAtom> connAtoms;
for (double g3r = 0; g3r < limitSup; g3r = g3r + step) {
for (int c = 0; c < G3R_DESC_LENGTH; c++) {
double g3r = limitSup * ((double)c / G3R_DESC_LENGTH);
sum = 0;
for (Integer aBondsInCycloex : bondsInCycloex) {
yaCounter = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,14 @@ && getIfBondIsNotRotatable(mol,
IAtom goodAtom1;
limitInf = 0;
limitSup = Math.PI / 2;
step = (limitSup - limitInf) / 7;
position = 0;
partial = 0;
IBond theDoubleBond;
smooth = -1.15;
int goodPosition = 0;
IBond goodBond;
for (double ghd = limitInf; ghd < limitSup; ghd = ghd + step) {
for (int c = 0; c < gdr_desc_length; c++) {
double ghd = limitInf + (limitSup - limitInf) * ((double)c / gdr_desc_length);
sum = 0;
for (int dou = 0; dou < doubles.size(); dou++) {
partial = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ && getIfBondIsNotRotatable(mol,
int position;
double limitInf = 1.4;
double limitSup = 4;
double step = (limitSup - limitInf) / 15;
IAtom atom2;

///////////////////////THE FIRST CALCULATED DESCRIPTOR IS g(H)r WITH PARTIAL CHARGES:
if (atoms.size() > 0) {
for (double ghr = limitInf; ghr < limitSup; ghr = ghr + step) {
for (int c = 0; c < ghr_desc_length; c++) {
double ghr = limitInf + (limitSup - limitInf) * ((double)c / ghr_desc_length);
sum = 0;
for (Object atom1 : atoms) {
distance = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,12 @@ && getIfBondIsNotRotatable(mol,
Integer thisAtom;
limitInf = 1.4;
limitSup = 4;
step = (limitSup - limitInf) / 15;

if (atoms.size() > 0) {
//ArrayList gHr_topol_function = new ArrayList(15);
ShortestPaths shortestPaths = new ShortestPaths(mol, startVertex);
for (double ghrt = limitInf; ghrt < limitSup; ghrt = ghrt + step) {
for (int c = 0; c < ghr_topol_desc_length; c++) {
double ghrt = limitInf + (limitSup - limitInf) * ((double)c / ghr_topol_desc_length);
sum = 0;
for (int at = 0; at < atoms.size(); at++) {
distance = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ && getIfBondIsNotRotatable(mol,
IBond theSingleBond = null;
limitInf = 0;
limitSup = Math.PI / 2;
step = (limitSup - limitInf) / 7;
smooth = -1.15;
for (double ghs = 0; ghs < limitSup; ghs = ghs + step) {
for (int c = 0; c < gsr_desc_length; c++) {
double ghs = limitSup * ((double)c / gsr_desc_length);
sum = 0;
for (int sing = 0; sing < singles.size(); sing++) {
angle = 0;
Expand Down

0 comments on commit accdac3

Please sign in to comment.