#include "media/learning/common/target_histogram.h"
#include <sstream>
namespace media {
namespace learning {
TargetHistogram::TargetHistogram() = default;
TargetHistogram::TargetHistogram(const TargetHistogram& rhs) = default;
TargetHistogram::TargetHistogram(TargetHistogram&& rhs) = default;
TargetHistogram::~TargetHistogram() = default;
TargetHistogram& TargetHistogram::operator=(const TargetHistogram& rhs) =
default;
TargetHistogram& TargetHistogram::operator=(TargetHistogram&& rhs) = default;
bool TargetHistogram::operator==(const TargetHistogram& rhs) const { … }
TargetHistogram& TargetHistogram::operator+=(const TargetHistogram& rhs) { … }
TargetHistogram& TargetHistogram::operator+=(const TargetValue& rhs) { … }
TargetHistogram& TargetHistogram::operator+=(const LabelledExample& example) { … }
double TargetHistogram::operator[](const TargetValue& value) const { … }
double& TargetHistogram::operator[](const TargetValue& value) { … }
bool TargetHistogram::FindSingularMax(TargetValue* value_out,
double* counts_out) const { … }
double TargetHistogram::Average() const { … }
void TargetHistogram::Normalize() { … }
std::string TargetHistogram::ToString() const { … }
std::ostream& operator<<(std::ostream& out,
const media::learning::TargetHistogram& dist) { … }
}
}