This commit is contained in:
Chris Li 2016-10-03 17:06:54 -04:00
parent b5cfda9479
commit 6592da324c
3 changed files with 2 additions and 18 deletions

View File

@ -1,18 +0,0 @@
boost_factor <- function(base,m,n, x) {
return(log(m*(1-x)+n, base=base))
}
base=exp(1)
# y1 is the weight when xapian prob is 100%
y1=0.8
# X2 is the xapian prob we want the boost factor to be 1
x2=0.75
n=base^y1
m=(base^1-n)/(1-x2)
boost_factor(base, m, n, 0)
sprintf('%.10f',m)
sprintf('%.10f',n)

View File

@ -1430,6 +1430,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@ -1477,6 +1478,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;