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

Method testVariance

JSAT/test/jsat/linear/ShiftedVecTest.java:388–394  ·  view source on GitHub ↗

Test of variance method, of class ShiftedVec.

()

Source from the content-addressed store, hash-verified

386 * Test of variance method, of class ShiftedVec.
387 */
388 @Test
389 public void testVariance()
390 {
391 System.out.println("variance");
392 ShiftedVec a = new ShiftedVec(a_base, shift_a);
393 assertEquals(a_dense.variance(), a.variance(), 1e-10);
394 }
395
396 /**
397 * Test of standardDeviation method, of class ShiftedVec.

Callers

nothing calls this directly

Calls 2

varianceMethod · 0.95
varianceMethod · 0.45

Tested by

no test coverage detected