aboutsummaryrefslogtreecommitdiff
path: root/binary_data_histogram.h
diff options
context:
space:
mode:
Diffstat (limited to 'binary_data_histogram.h')
-rw-r--r--binary_data_histogram.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/binary_data_histogram.h b/binary_data_histogram.h
index 3950ab7..201f90a 100644
--- a/binary_data_histogram.h
+++ b/binary_data_histogram.h
@@ -11,7 +11,6 @@
#include <memory>
#include <string>
-#include "base/macros.h"
#include "components/zucchini/buffer_view.h"
namespace zucchini {
@@ -24,6 +23,8 @@ namespace zucchini {
class OutlierDetector {
public:
OutlierDetector();
+ OutlierDetector(const OutlierDetector&) = delete;
+ const OutlierDetector& operator=(const OutlierDetector&) = delete;
~OutlierDetector();
// Incorporates |sample| into mean and standard deviation.
@@ -47,8 +48,6 @@ class OutlierDetector {
double sum_of_squares_ = 0;
double mean_ = 0;
double standard_deviation_ = 0;
-
- DISALLOW_COPY_AND_ASSIGN(OutlierDetector);
};
// A class to compute similarity score between binary data. The heuristic here
@@ -58,6 +57,8 @@ class OutlierDetector {
class BinaryDataHistogram {
public:
BinaryDataHistogram();
+ BinaryDataHistogram(const BinaryDataHistogram&) = delete;
+ const BinaryDataHistogram& operator=(const BinaryDataHistogram&) = delete;
~BinaryDataHistogram();
// Attempts to compute the histogram, returns true iff successful.
@@ -82,8 +83,6 @@ class BinaryDataHistogram {
// are stored as signed values to simplify computing the distance between two
// histograms.
std::unique_ptr<int32_t[]> histogram_;
-
- DISALLOW_COPY_AND_ASSIGN(BinaryDataHistogram);
};
} // namespace zucchini