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

Method testEmbedShift

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

Test of embedShift method, of class ShiftedVec.

()

Source from the content-addressed store, hash-verified

116 * Test of embedShift method, of class ShiftedVec.
117 */
118 @Test
119 public void testEmbedShift()
120 {
121 System.out.println("embedShift");
122
123 ShiftedVec a = new ShiftedVec(a_base, shift_a);
124
125 a.embedShift();
126
127 assertEquals(0.0, a.getShift(), 0.0);
128
129 assertTrue(a.getBase().equals(a_dense, 1e-10));
130 }
131
132 /**
133 * Test of length method, of class ShiftedVec.

Callers

nothing calls this directly

Calls 4

embedShiftMethod · 0.95
getShiftMethod · 0.95
getBaseMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected