Here you can find the source of minOfSubRange(double[] xs, int start, int end)
private static double minOfSubRange(double[] xs, int start, int end)
//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; } }