[Genabel-commits] r1710 - pkg/ProbABEL/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Apr 28 16:44:07 CEST 2014
Author: lckarssen
Date: 2014-04-28 16:44:07 +0200 (Mon, 28 Apr 2014)
New Revision: 1710
Modified:
pkg/ProbABEL/src/regdata.cpp
pkg/ProbABEL/src/regdata.h
Log:
regdata::get_unmasked_data() is a const member function, like its cousin in the choxph_data class.
Modified: pkg/ProbABEL/src/regdata.cpp
===================================================================
--- pkg/ProbABEL/src/regdata.cpp 2014-04-28 14:42:18 UTC (rev 1709)
+++ pkg/ProbABEL/src/regdata.cpp 2014-04-28 14:44:07 UTC (rev 1710)
@@ -252,7 +252,7 @@
* @return A new regdata object containing only the rows from
* regdata::X and regdata::Y for which genotype data is present.
*/
-regdata regdata::get_unmasked_data()
+regdata regdata::get_unmasked_data() const
{
regdata to;
int nmeasured = std::count(masked_data.begin(), masked_data.end(), 0);
Modified: pkg/ProbABEL/src/regdata.h
===================================================================
--- pkg/ProbABEL/src/regdata.h 2014-04-28 14:42:18 UTC (rev 1709)
+++ pkg/ProbABEL/src/regdata.h 2014-04-28 14:44:07 UTC (rev 1710)
@@ -132,7 +132,7 @@
// Member functions.
void update_snp(const gendata *gend, const int snpnum);
void remove_snp_from_X();
- regdata get_unmasked_data();
+ regdata get_unmasked_data() const;
mematrix<double> extract_genotypes();
private:
More information about the Genabel-commits
mailing list