MCPcopy Create free account
hub / github.com/WinVector/Logistic / SFun

Method SFun

src/com/winvector/opt/impl/SFun.java:40–52  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected