MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testSum

Method testSum

JSAT/test/jsat/linear/SparseVectorTest.java:263–270  ·  view source on GitHub ↗

Test of sum method, of class SparseVector.

()

Source from the content-addressed store, hash-verified

261 * Test of sum method, of class SparseVector.
262 */
263 @Test
264 public void testSum()
265 {
266 System.out.println("sum");
267 assertEquals(19.0, x.sum(), 1e-15);
268
269 assertEquals(20.0, y.sum(), 1e-15);
270 }
271
272 /**
273 * Test of variance method, of class SparseVector.

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected