投稿者 トピック: [r4720] settings_t::get_locality_factor is correct ?  (参照数 1715 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 364
Value locality_factor_per_year[i].factor is not used anywhere.

コード: [選択]
#else
// exponential evaluation
sint32 diff = (locality_factor_per_year[i].year-locality_factor_per_year[i-1].year);
double a = (double)diff*(exp((double)(year-locality_factor_per_year[i-1].year)/20.0)-1.0);
double b = (exp((double)(locality_factor_per_year[i].year-locality_factor_per_year[i-1].year)/20.0)-1.0);
return locality_factor_per_year[i-1].factor + (sint32)((diff*a)/b + 0.5);
#endif

prissi

  • 各駅停車
  • *
  • 投稿: 45
Re:[r4720] settings_t::get_locality_factor is correct ?
« 返信 #1 on: 2011/08/05 06:08 »
ありがとう r4742 ...