MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __getAppliedRr

Method __getAppliedRr

eos/saveddata/fit.py:1896–1909  ·  view source on GitHub ↗
(rrList)

Source from the content-addressed store, hash-verified

1894
1895 @staticmethod
1896 def __getAppliedRr(rrList):
1897 totalRaw = 0
1898 for amount, cycleTime in rrList:
1899 # That's right, for considerations of RR diminishing returns cycle time is rounded this way
1900 totalRaw += amount / int(cycleTime)
1901 RR_ADDITION = 7000
1902 RR_MULTIPLIER = 20
1903 appliedRr = 0
1904 for amount, cycleTime in rrList:
1905 rrps = amount / int(cycleTime)
1906 modified_rrps = RR_ADDITION + (rrps * RR_MULTIPLIER)
1907 rrps_mult = 1 - (((rrps + modified_rrps) / (totalRaw + modified_rrps)) - 1) ** 2
1908 appliedRr += rrps_mult * amount / cycleTime
1909 return appliedRr
1910
1911
1912 def __deepcopy__(self, memo=None):

Callers 5

_getAppliedHullRrMethod · 0.95
_getAppliedArmorRrMethod · 0.95
_getAppliedShieldRrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected