From 52b6b61d62b717b35af0c576733c7a305265c7d7 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Mon, 25 May 2015 12:48:14 +0800 Subject: full pairs cont. --- tools/dataProvider.h | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'tools/dataProvider.h') diff --git a/tools/dataProvider.h b/tools/dataProvider.h index 390432e..07f1989 100644 --- a/tools/dataProvider.h +++ b/tools/dataProvider.h @@ -144,13 +144,18 @@ public: b=x%q; double res = 0; Eigen::VectorXd *id,*oth; - id = &(uniq[a]->feature); if (single) + { + id = &(uniq[a]->feature); oth = &(other[b]->feature); - else if (bfeature); - else - oth = &(all[b+1]->feature); + } + else { + id = &(all[a]->feature); + if (bfeature); + else + oth = &(all[b+1]->feature); + } for (int i=0;ifeature); if (single) + { + id = &(uniq[a]->feature); oth = &(other[b]->feature); - else if (bfeature); - else - oth = &(all[b+1]->feature); + } + else { + id = &(all[a]->feature); + if (bfeature); + else + oth = &(all[b+1]->feature); + } for (int i=0;i