[med-svn] [aghermann] 51/60: it's all fine and dandy, but we need lua, dammit

andrei zavada hmmr-guest at alioth.debian.org
Mon Nov 4 23:50:00 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit ce942cc37ad1d0244239e4ca5ee1c09416e0091f
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Wed Oct 23 23:39:23 2013 +0300

    it's all fine and dandy, but we need lua, dammit
---
 upstream/src/aghermann/rk1968/rk1968.cc |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/upstream/src/aghermann/rk1968/rk1968.cc b/upstream/src/aghermann/rk1968/rk1968.cc
index c7d08fd..abc7542 100644
--- a/upstream/src/aghermann/rk1968/rk1968.cc
+++ b/upstream/src/aghermann/rk1968/rk1968.cc
@@ -46,6 +46,8 @@ score( agh::SEpisode& E, size_t* n_pages_scored_p)
 {
         size_t n_pages_scored = 0;
 
+        sigfile::CHypnogram& F1 = E.sources.front();
+
       // 1. delta/theta-based NREM3 detection
         {
                 forward_list<agh::CRecording*> HH;
@@ -69,8 +71,7 @@ score( agh::SEpisode& E, size_t* n_pages_scored_p)
                                         agh::CExpDesign::freq_bands[metrics::TBand::theta][1]));
                 }
 
-                auto& firstsource = E.sources.front();
-                for ( size_t p = 0; p < firstsource.n_pages(); ++p ) {
+                for ( size_t p = 0; p < F1.n_pages(); ++p ) {
                         auto    Di = courses_delta.begin(),
                                 Ti = courses_theta.begin();
                         int decision = 0;
@@ -79,7 +80,7 @@ score( agh::SEpisode& E, size_t* n_pages_scored_p)
                                         ( (*Di)[p] > (*Ti)[p] * Pp.nrem3_delta_theta_ratio );
                         }
                         if ( decision > 0 ) {
-                                firstsource[p].mark( sigfile::SPage::TScore::nrem3);
+                                F1[p].mark( sigfile::SPage::TScore::nrem3);
                                 ++n_pages_scored;
                         }
                 }
@@ -92,6 +93,11 @@ score( agh::SEpisode& E, size_t* n_pages_scored_p)
                 // (b) 
         }
 
+      // 3. detect Wake where EMG is too wild
+        {
+                
+        }
+
         if ( n_pages_scored_p )
                 *n_pages_scored_p = n_pages_scored;
 

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list