Skip to content

Commit f1b89b7

Browse files
author
Pham Minh Duc
committed
Update scale factor for larger scale (Not really accurate)
1 parent c887506 commit f1b89b7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/main/resources/scale_factors.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,22 @@
4141
<start_year>2010</start_year>
4242
<num_years>3</num_years>
4343
</scale_factor>
44+
45+
<scale_factor number="3000" >
46+
<num_persons>8881000</num_persons>
47+
<start_year>2010</start_year>
48+
<num_years>3</num_years>
49+
</scale_factor>
50+
51+
<scale_factor number="10000" >
52+
<num_persons>24323000</num_persons>
53+
<start_year>2010</start_year>
54+
<num_years>3</num_years>
55+
</scale_factor>
56+
57+
<scale_factor number="30000" >
58+
<num_persons>60994000</num_persons>
59+
<start_year>2010</start_year>
60+
<num_years>3</num_years>
61+
</scale_factor>
4462
</scale_factors>

tools/scalefactor/scale_factor_regression.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ table = read.table(paste(args[1],sep=''),header=TRUE)
55
names(table)
66
m <- lm(formula=log(Persons) ~ log(Bytes),data=table)
77
#here is the list of scale factors to retrieve
8-
scaleFactors <- data.frame(Bytes=c(1073741824, 3221225472, 10737418240, 32212254720, 107374182400, 322122547200, 1099511628000))
8+
scaleFactors <- data.frame(Bytes=c(1073741824, 3221225472, 10737418240, 32212254720, 107374182400, 322122547200, 1099511628000, 3298534883328, 10995116277760, 32985348833280, 329853488332800, 1125899906842624))
99
predicted <- exp(predict(m,scaleFactors))
1010
for( i in 1:length(predicted)) {
1111
print(paste(round(predicted[[i]],digits=-3),scaleFactors$Bytes[[i]],sep=' '))

0 commit comments

Comments
 (0)