- added hill climbing

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@456 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-05-24 18:10:01 +00:00
parent 80c6a697a6
commit 4fbb64fc73
2 changed files with 67 additions and 11 deletions
+4 -2
View File
@@ -32,7 +32,7 @@ namespace jay {
// Nothing to declare in this block.
float m_alpha_s;
float m_alpha_m;
float *m_pPeak;
float *m_pPeakData;
float *m_pX;
float *m_pXs;
float *m_pXm;
@@ -48,7 +48,9 @@ namespace jay {
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
void fill(float *pDst, int length, float value);
float mean(float *pSrc, int length);
int findPeakPos(int *pDst, float *pSrc, int length, float thresh);
int threshold(float *pDst, float *pSrc, int length, float thresh);
int findPeakPos(int *pDst, float *pSrc, int length);
};
} // namespace jay