From ba09a549968e79afc625bd1905af7dc5692b7439 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Tue, 24 Jan 2017 00:58:48 -0500 Subject: Improve data processor --- tools/process_rawcap/process_to_points.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/process_rawcap/process_to_points.c b/tools/process_rawcap/process_to_points.c index 8a48bae..ba6a9c0 100644 --- a/tools/process_rawcap/process_to_points.c +++ b/tools/process_rawcap/process_to_points.c @@ -124,6 +124,7 @@ int main( int argc, char ** argv ) #define MAX_LENTIME 200000 //800000/4 #define MAX_PERMISSABLE_TO_PEAK 40 + int cullcount = 0; int biggesttime = 0; int biggesttimeplace = -1; @@ -156,6 +157,7 @@ int main( int argc, char ** argv ) if( dist_to_peak > MAX_PERMISSABLE_TO_PEAK || dist_to_peak < -MAX_PERMISSABLE_TO_PEAK ) { DATASWEEP[dev][sen][swe][i] = -1; + cullcount++; continue; } @@ -199,12 +201,18 @@ int main( int argc, char ** argv ) histo[llm]++; } + if( cullcount > 100 ) + { + fprintf( stderr, "WARNING: %s%s%02d has %d out-of-window hits broken disambiguator?\n", Devices[dev], DevMap[swe], sen, cullcount ); + continue; + } + stddevtim /= count; stddevlen /= count; if( stddevtim > 55 ) { - fprintf( stderr, "Warning: %s%s%02d dropped because stddev (%f) was too high.\n", Devices[dev], DevMap[swe], sen, stddevtim ); + fprintf( stderr, "DROPPED: %s%s%02d dropped because stddev (%f) was too high.\n", Devices[dev], DevMap[swe], sen, stddevtim ); continue; } -- cgit v1.2.3