code: public static double ratioSmallestOverLargest( double []sv ) {
          if( sv.length == 0 )
              return Double.NaN;
  
          double min = sv[0];
          double max = min;
  
          for (int i = 1; i < sv.length; i++) {
              double v = sv[i];
              if( v > max )
                  max = v;
              else if( v < min )
                  min = v;
          }
  
          return  min/max;
      }
docs: Computes the ratio of the smallest value to the largest. Does not assume
  the array is sorted first
  @param sv array
  @return smallest / largest