[Genabel-commits] r1293 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Aug 14 17:33:06 CEST 2013
Author: lckarssen
Date: 2013-08-14 17:33:06 +0200 (Wed, 14 Aug 2013)
New Revision: 1293
Modified:
pkg/ProbABEL/src/coxph_data.cpp
pkg/ProbABEL/src/coxph_data.h
Log:
Small changes, one in code layout, the other to indicate an argument is const.
Modified: pkg/ProbABEL/src/coxph_data.cpp
===================================================================
--- pkg/ProbABEL/src/coxph_data.cpp 2013-08-14 07:12:29 UTC (rev 1292)
+++ pkg/ProbABEL/src/coxph_data.cpp 2013-08-14 15:33:06 UTC (rev 1293)
@@ -63,7 +63,7 @@
}
}
-coxph_data::coxph_data(phedata &phed, gendata &gend, int snpnum)
+coxph_data::coxph_data(phedata &phed, gendata &gend, const int snpnum)
{
nids = gend.nids;
masked_data = new unsigned short int[nids];
@@ -221,11 +221,11 @@
// function allows you to strip that information from X again.
// This is used for example when calculating the null model.
- if(ngpreds == 1)
+ if (ngpreds == 1)
{
X.delete_row(X.nrow -1);
}
- else if(ngpreds == 2)
+ else if (ngpreds == 2)
{
X.delete_row(X.nrow -1);
X.delete_row(X.nrow -1);
Modified: pkg/ProbABEL/src/coxph_data.h
===================================================================
--- pkg/ProbABEL/src/coxph_data.h 2013-08-14 07:12:29 UTC (rev 1292)
+++ pkg/ProbABEL/src/coxph_data.h 2013-08-14 15:33:06 UTC (rev 1293)
@@ -34,7 +34,7 @@
coxph_data(const coxph_data &obj);
coxph_data(phedata &phed, gendata &gend, int snpnum);
- void update_snp(gendata &gend, int snpnum);
+ void update_snp(gendata &gend, const int snpnum);
void remove_snp_from_X();
~coxph_data();
More information about the Genabel-commits
mailing list