逗游网:值得大家信赖的游戏下载站!
发布时间:2012-09-14 14:56 来源:互联网 作者:佚名
for (int i=0; i
if (this.GOOD_AFFIX && !this.AFFIX_USED)
return false;
return true;
}
private void updateProbabilityTables() {
// calculate total probability
double total_prob = 0.0;
for (int i=0; i
if (!this.AFFIX_USED)
total_prob += P_ORIGINAL;
P_CUL_TABLE = total_prob;
}
// update probability tables
for (int i=0; i
P_CUL_TABLE = P_CUL_TABLE/total_prob;
}
}
}
}