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

Method testNormV

test/com/winvector/logistic/TestOpt.java:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67 public void testNormV() {
68 // norm penalty should put max at 0 (and max value should be 0)
69 final int dim = 3;
70 final VectorFn f = new NormPenalty(dim,1.0e-2);
71 final double[] x = new double[dim];
72 final VEval f0 = f.eval(x,false,false);
73 assertTrue(Math.abs(f0.fx)<1.0e-12);
74 }
75
76 public void testNormV2() {
77 // norm penalty should put max at 0 (and max value should be 0)

Callers

nothing calls this directly

Calls 1

evalMethod · 0.95

Tested by

no test coverage detected