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

Method testVariance

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

Test of variance method, of class SparseVector.

()

Source from the content-addressed store, hash-verified

273 * Test of variance method, of class SparseVector.
274 */
275 @Test
276 public void testVariance()
277 {
278 System.out.println("variance");
279 assertEquals(2.2475, x.variance(), 1e-14);
280
281 assertEquals(2.2, y.variance(), 1e-14);
282 }
283
284 /**
285 * Test of median method, of class SparseVector.

Callers

nothing calls this directly

Calls 1

varianceMethod · 0.45

Tested by

no test coverage detected