#ifndef NET_NQE_WEIGHTED_OBSERVATION_H_
#define NET_NQE_WEIGHTED_OBSERVATION_H_
#include "net/base/net_export.h"
namespace net::nqe::internal {
struct NET_EXPORT_PRIVATE WeightedObservation {
WeightedObservation(int32_t value, double weight)
: value(value), weight(weight) {}
WeightedObservation(const WeightedObservation& other)
: WeightedObservation(other.value, other.weight) {}
WeightedObservation& operator=(const WeightedObservation& other) = default;
bool operator<(const WeightedObservation& other) const {
return (value < other.value);
}
int32_t value;
double weight;
};
}
#endif