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

Method testSetShift

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

Test of setShift method, of class ShiftedVec.

()

Source from the content-addressed store, hash-verified

100 * Test of setShift method, of class ShiftedVec.
101 */
102 @Test
103 public void testSetShift()
104 {
105 System.out.println("setShift");
106 ShiftedVec a = new ShiftedVec(a_base, shift_a);
107
108 assertEquals(shift_a, a.getShift(), 0.0);
109
110 a.setShift(shift_b);
111
112 assertEquals(shift_b, a.getShift(), 0.0);
113 }
114
115 /**
116 * Test of embedShift method, of class ShiftedVec.

Callers

nothing calls this directly

Calls 2

getShiftMethod · 0.95
setShiftMethod · 0.95

Tested by

no test coverage detected