Closed steve-the-bayesian closed 2 years ago
Condition 'confidence>=1' is always true
if (confidence <= 0 || confidence >= 1) {
The 'confidence' parameter is a double passed in as a function argument. It can have an arbitrary value. The warning is incorrect.
Codacy detected an issue:
Message:
Condition 'confidence>=1' is always true
Occurred on:
if (confidence <= 0 || confidence >= 1) {
Currently on:
The 'confidence' parameter is a double passed in as a function argument. It can have an arbitrary value. The warning is incorrect.