Home
last modified time | relevance | path

Searched refs:HalfLifeTimeDecay (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/components/omnibox/
Domnibox_field_trial_unittest.cc369 TEST_F(OmniboxFieldTrialTest, HalfLifeTimeDecay) { in TEST_F() argument
373 EXPECT_EQ(1.0, buckets.HalfLifeTimeDecay(base::TimeDelta::FromDays(7))); in TEST_F()
376 EXPECT_EQ(0.5, buckets.HalfLifeTimeDecay(base::TimeDelta::FromDays(7))); in TEST_F()
377 EXPECT_EQ(0.25, buckets.HalfLifeTimeDecay(base::TimeDelta::FromDays(14))); in TEST_F()
378 EXPECT_EQ(1.0, buckets.HalfLifeTimeDecay(base::TimeDelta::FromDays(0))); in TEST_F()
379 EXPECT_EQ(1.0, buckets.HalfLifeTimeDecay(base::TimeDelta::FromDays(-1))); in TEST_F()
Domnibox_field_trial.h35 double HalfLifeTimeDecay(const base::TimeDelta& elapsed_time) const;
Domnibox_field_trial.cc97 double HUPScoringParams::ScoreBuckets::HalfLifeTimeDecay( in HalfLifeTimeDecay() function in HUPScoringParams::ScoreBuckets
/external/chromium_org/chrome/browser/autocomplete/
Dhistory_url_provider.cc132 decayed_count *= score_buckets.HalfLifeTimeDecay(time_since_last_visit); in CalculateRelevanceUsingScoreBuckets()