Skip to content

Commit

Permalink
fixed bug in definition of started Box-Cox
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Lussana committed Sep 18, 2024
1 parent 0e6e844 commit d58cf7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ float gridpp::BoxCox::backward(float value) const {
if(rValue <= 0)
rValue = 0;
return rValue;
}
gridpp::StartedBoxCox::StartedBoxCox(float threshold) : mThreshold(threshold) {

}
float gridpp::StartedBoxCox::forward(float value) const {
if(!gridpp::is_valid(value) || mThreshold <= 0)
Expand Down

0 comments on commit d58cf7e

Please sign in to comment.