| 29 | } |
| 30 | |
| 31 | float CMinMaxStats::normalize(float value){ |
| 32 | float norm_value = value; |
| 33 | float delta = this->maximum - this->minimum; |
| 34 | if(delta > 0){ |
| 35 | if(delta < this->value_delta_max){ |
| 36 | norm_value = (norm_value - this->minimum) / this->value_delta_max; |
| 37 | } |
| 38 | else{ |
| 39 | norm_value = (norm_value - this->minimum) / delta; |
| 40 | } |
| 41 | } |
| 42 | return norm_value; |
| 43 | } |
| 44 | |
| 45 | //********************************************************* |
| 46 |
no outgoing calls
no test coverage detected