| Conditions | 2 |
| Total Lines | 25 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.osomapps.pt.estimation; |
||
| 33 | public float calc(float value) { |
||
| 34 | if (value < 0) { |
||
| 35 | return (float) |
||
| 36 | (Math.abs( |
||
| 37 | Math.min( |
||
| 38 | Math.max( |
||
| 39 | (Math.pow(value / 100, baseNumber) |
||
| 40 | * 100 |
||
| 41 | / impact), |
||
| 42 | -limit), |
||
| 43 | limit * 0.5F)) |
||
| 44 | * Math.signum(value) |
||
| 45 | + zeroAdjustmentAfter); |
||
| 46 | } |
||
| 47 | return (float) |
||
| 48 | (Math.abs( |
||
| 49 | Math.min( |
||
| 50 | Math.max( |
||
| 51 | (Math.pow(value / 100, baseNumber) |
||
| 52 | * 100 |
||
| 53 | / impact), |
||
| 54 | -limit), |
||
| 55 | limit)) |
||
| 56 | * Math.signum(value) |
||
| 57 | + zeroAdjustmentAfter); |
||
| 58 | } |
||
| 60 |