- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
@Test public void costFunction() { UnconLeastSqTrustRegion_F64<DMatrixRMaj> alg = createAlg(); alg.functionResiduals = new MockFunctionNtoM(new double[]{-1,2,-3},1); alg.residuals.reshape(3,1); double expected = 0.5*(1+4+9); double found = alg.cost(new DMatrixRMaj(1,1)); assertEquals(expected,found, UtilEjml.TEST_F64); }