Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按收益率计算的速度太慢了 #12

Open
aersi opened this issue Oct 27, 2019 · 0 comments
Open

按收益率计算的速度太慢了 #12

aersi opened this issue Oct 27, 2019 · 0 comments

Comments

@aersi
Copy link

aersi commented Oct 27, 2019

我是这样想的。
现在的基础数据表是建筑等级和单次成本以及秒收入的表,通过求成本的累加和得到每等级的总成本表,从而直接生成收益率的表。
用这个表计算收益率的速度就和用基础数据表计算收益的速度一样快了,完全用同一套算法。

当然,由于拐点的存在,可能会出现对映关系的问题,需要对表的等级取整,甚至进行重新排序等修饰,这些都可以在预处理中一次完成,从而节约绝大多数的计算量。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant