From: Diane Trout Date: Fri, 3 Aug 2007 01:37:57 +0000 (+0000) Subject: add threshold/window flag getter/setters X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=19d46b8e8eea3077d5daeba0df83c28c2f216f57 add threshold/window flag getter/setters --- diff --git a/alg/mussa.cpp b/alg/mussa.cpp index 1911c5d..0912cb4 100644 --- a/alg/mussa.cpp +++ b/alg/mussa.cpp @@ -90,6 +90,26 @@ Mussa::clear() set_dirty(false); } +void Mussa::set_append_window(bool v) +{ + win_append = v; +} + +bool Mussa::get_append_window() +{ + return win_append; +} + +void Mussa::set_append_threshold(bool v) +{ + thres_append = v; +} + +bool Mussa::get_append_threshold() +{ + return thres_append; +} + void Mussa::set_dirty(bool new_state) { if (dirty != new_state) { diff --git a/alg/mussa.hpp b/alg/mussa.hpp index 152d821..fb05ec7 100644 --- a/alg/mussa.hpp +++ b/alg/mussa.hpp @@ -111,6 +111,16 @@ public: //! must be in range [threshold..window size] void set_soft_threshold(int sft_thres); int get_soft_threshold() const; + + //! should we append the window size to the analysis name + void set_append_window(bool v); + //! should we append the window size to the analysis name + bool get_append_window(); + + //! should we append the threshold to the analysis name + void set_append_threshold(bool v); + //! should we append the threshold to the analysis name + bool get_append_threshold(); void set_analysis_mode(enum analysis_modes new_ana_mode); enum analysis_modes get_analysis_mode() const;