2 * Description: basic operations on Arrays
4 * @ Author Create/Modi Note
5 * Xiaofeng Xie Oct. 9, 2002
9 package net
.adaptivebox
.global
;
11 public class BasicArray
{
12 public static double getMinValue(double[] v
) {
13 double mv
= Double
.MAX_VALUE
;
14 for (int i
=0; i
<v
.length
; i
++) {
21 public static double getMaxValue(double[] v
) {
22 double mv
= -Double
.MAX_VALUE
;
23 for (int i
=0; i
<v
.length
; i
++) {