Java Array Min Value minOfSubRange(double[] xs, int start, int end)

Here you can find the source of minOfSubRange(double[] xs, int start, int end)

Description

min Of Sub Range

License

Open Source License

Declaration

private static double minOfSubRange(double[] xs, int start, int end) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static double minOfSubRange(double[] xs, int start, int end) {
        double min = Double.POSITIVE_INFINITY;
        for (int i = start; i < end; i++) {
            if (xs[i] < min) {
                min = xs[i];//from w  w  w .j av a2s.c o m
            }
        }
        return min;
    }
}

Related

  1. minOf(double[] da, double val)
  2. minOfArr(int[] arrInput)
  3. minOfArray(float[] array)
  4. minOfCol(int[][] matrixTable, int colBound)
  5. minOfSortedValues(double[] sortedValues)
  6. minOverArraySubset(double[] array, Iterable subset)
  7. minPrim(final int... numbers)
  8. minsort(int[] vet1)
  9. minValue(double array[][])