aboutsummaryrefslogtreecommitdiff
path: root/poiss.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2021-10-18 12:28:15 -0700
committerJohn Denker <jsd@av8n.com>2021-10-18 12:28:15 -0700
commitb9e2078e5a007ec8c26605f2ab76dd14c20a1e9f (patch)
treef8d26f33f82d44fdd51a99621993e0f8acae04d8 /poiss.c
parentdf32aaa04e93ec4f83a4eb245970009e467b59d5 (diff)
relocate count_header code to more appropriate file
Diffstat (limited to 'poiss.c')
-rw-r--r--poiss.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/poiss.c b/poiss.c
index 70a20b9..a286184 100644
--- a/poiss.c
+++ b/poiss.c
@@ -148,32 +148,6 @@ double limp(unsigned int const nprm, double const* _prm,
return rslt;
}
-// Scan the data array,
-// looking for records that look like headers
-// (as opposed to numerical data).
-int count_header(vector<vector<string> > const aoa){
- int NR = aoa.size();
- int hh = 0;
- for (; hh < NR; hh++) {
- if (aoa[hh].size() == 0) continue;
- string word = aoa[hh][0];
- size_t where;
- where = word.find_first_not_of(" ");
- if (where == string::npos) continue;
- word = word.substr(where);
- try {
- stod(word, &where); // don't care about return value
- }
- catch (exception& ee) {
- continue;
- }
- word = word.substr(where);
- where = word.find_first_not_of(" ");
- if (where == string::npos) break;
- }
- return hh;
-}
-
// Some tricky heuristics.
// Guess a starting point for the fitting process
// (i.e. minimization process).