You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When computing cdf by using getmodel (compiling option: typedef float OASIS_FLOA), the accuracy of prob may decease, due to untimely conversion from float32 to float64.
Steps to Reproduce
In getmodel.cpp (line 49-350), 'prob' is calculated as,
The data types of vulnerability[getVulnerabilityIndex(i.first, damage_bin_index)] and i.second are both float32. And the data type of 'prob' is float64. This may lead to slight data accuracy decrease.
Accuracy can be improved by converting float32 to float64 first, as follows,
Issue Description
When computing cdf by using getmodel (compiling option: typedef float OASIS_FLOA), the accuracy of
prob
may decease, due to untimely conversion from float32 to float64.Steps to Reproduce
The data types of
vulnerability[getVulnerabilityIndex(i.first, damage_bin_index)]
andi.second
are both float32. And the data type of 'prob' is float64. This may lead to slight data accuracy decrease.Version / Environment information
ktools v3.12.4
typedef float OASIS_FLOAT
The text was updated successfully, but these errors were encountered: