MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / minima

Method minima

patterns/chain/ChainOfResponsibility.java:38–46  ·  view source on GitHub ↗
(List<Double> line)

Source from the content-addressed store, hash-verified

36 FindMinima::bisection
37 );
38 public static Result minima(List<Double> line) {
39 for(Function<List<Double>, Result> alg :
40 algorithms) {
41 Result result = alg.apply(line);
42 if(result.success)
43 return result;
44 }
45 return Result.fail;
46 }
47}
48
49public class ChainOfResponsibility {

Callers 1

mainMethod · 0.95

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected