projects
/
mussa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecfe244
)
add threshold/window flag getter/setters
author
Diane Trout
<diane@caltech.edu>
Fri, 3 Aug 2007 01:37:57 +0000
(
01:37
+0000)
committer
Diane Trout
<diane@caltech.edu>
Fri, 3 Aug 2007 01:37:57 +0000
(
01:37
+0000)
alg/mussa.cpp
patch
|
blob
|
history
alg/mussa.hpp
patch
|
blob
|
history
diff --git
a/alg/mussa.cpp
b/alg/mussa.cpp
index 1911c5de7b187e11924f44417faf36ec35c8c29d..0912cb428be56d6ea4f1e270cf4b0acb2b9517a9 100644
(file)
--- a/
alg/mussa.cpp
+++ b/
alg/mussa.cpp
@@
-90,6
+90,26
@@
Mussa::clear()
set_dirty(false);
}
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) {
void Mussa::set_dirty(bool new_state)
{
if (dirty != new_state) {
diff --git
a/alg/mussa.hpp
b/alg/mussa.hpp
index 152d8217349568755913e67c1a77fed6aaa6eaa6..fb05ec704af23cabf1911bf20bac84758c5f6757 100644
(file)
--- 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;
//! 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;
void set_analysis_mode(enum analysis_modes new_ana_mode);
enum analysis_modes get_analysis_mode() const;