Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: webrtc/modules/audio_processing/beamformer/array_util.h

Issue 1388033002: Make the separation between target and interferer scenario depend on microphone spacing in Nonlinea… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@nlbf3
Patch Set: Rebasing Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/beamformer/array_util.h
diff --git a/webrtc/modules/audio_processing/beamformer/array_util.h b/webrtc/modules/audio_processing/beamformer/array_util.h
index f7598c0b5d2f7268c95a771ef65e52ce7d63d7c6..64a9ca37f92dfefff8c5b95e35683677e7bf098e 100644
--- a/webrtc/modules/audio_processing/beamformer/array_util.h
+++ b/webrtc/modules/audio_processing/beamformer/array_util.h
@@ -12,6 +12,7 @@
#define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_ARRAY_UTIL_H_
#include <cmath>
+#include <vector>
namespace webrtc {
@@ -31,6 +32,8 @@ struct CartesianPoint {
using Point = CartesianPoint<float>;
+float GetMinimumSpacing(const std::vector<Point>& array_geometry);
Andrew MacDonald 2015/10/19 22:35:07 Add a comment.
aluebs-webrtc 2015/10/20 00:17:07 Done.
+
template<typename T>
float Distance(CartesianPoint<T> a, CartesianPoint<T> b) {
return std::sqrt((a.x() - b.x()) * (a.x() - b.x()) +

Powered by Google App Engine
This is Rietveld 408576698