()
| 326 | } |
| 327 | |
| 328 | void findMinAndMax() { |
| 329 | if (profile==null) return; |
| 330 | double min = profile[0]; |
| 331 | double max = profile[0]; |
| 332 | double value; |
| 333 | for (int i=1; i<profile.length; i++) { |
| 334 | value = profile[i]; |
| 335 | if (value<min) |
| 336 | min = value; |
| 337 | else if (value>max) |
| 338 | max = value; |
| 339 | } |
| 340 | this.min = min; |
| 341 | this.max = max; |
| 342 | } |
| 343 | |
| 344 | |
| 345 | } |