#include "components/history_clusters/core/ranking_cluster_finalizer.h"
#include "base/containers/adapters.h"
#include "components/history_clusters/core/history_clusters_util.h"
namespace history_clusters {
namespace {
float clamp(float x, float lowerlimit, float upperlimit) { … }
float Smoothstep(float low, float high, float value) { … }
}
RankingClusterFinalizer::RankingClusterFinalizer(
ClusteringRequestSource clustering_request_source) { … }
RankingClusterFinalizer::~RankingClusterFinalizer() = default;
void RankingClusterFinalizer::FinalizeCluster(history::Cluster& cluster) { … }
void RankingClusterFinalizer::CalculateVisitAttributeScoring(
history::Cluster& cluster,
base::flat_map<history::VisitID, VisitScores>& url_visit_scores) { … }
void RankingClusterFinalizer::CalculateVisitDurationScores(
history::Cluster& cluster,
base::flat_map<history::VisitID, VisitScores>& url_visit_scores) { … }
void RankingClusterFinalizer::ComputeFinalVisitScores(
history::Cluster& cluster,
base::flat_map<history::VisitID, VisitScores>& url_visit_scores) { … }
}