@param f funciton @param x0 point to evaluate around @param dir direction to move @param boxBound boundingBox on coords @param fx0 if not null f(x0)
(final VectorFn f, final double[] x0, final double[] dir, final double boxBound, final VEval fx0)
| 38 | * @param fx0 if not null f(x0) |
| 39 | */ |
| 40 | public SFun(final VectorFn f, final double[] x0, final double[] dir, final double boxBound, final VEval fx0) { |
| 41 | this.f = f; |
| 42 | this.x0 = x0; |
| 43 | this.dir = dir; |
| 44 | this.boxBound = boxBound; |
| 45 | if(fx0!=null) { |
| 46 | if((!Double.isInfinite(fx0.fx))&&(!Double.isNaN(fx0.fx))) { |
| 47 | min = fx0; |
| 48 | max = fx0; |
| 49 | } |
| 50 | cache.put(0.0,fx0); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public double eval(final double s) { |
nothing calls this directly
no outgoing calls
no test coverage detected