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

Method testIncrement

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

Test of increment method, of class ShiftedVec.

()

Source from the content-addressed store, hash-verified

181 * Test of increment method, of class ShiftedVec.
182 */
183 @Test
184 public void testIncrement()
185 {
186 System.out.println("increment");
187 ShiftedVec a = new ShiftedVec(a_base, shift_a);
188
189 for(int i =0 ; i < a.length(); i++)
190 {
191 a.increment(i, (i+1));
192 a_dense.increment(i, (i+1));
193 assertEquals(a_dense.get(i), a.get(i), 1e-10);
194 }
195 }
196
197 /**
198 * Test of mutableAdd method, of class ShiftedVec.

Callers

nothing calls this directly

Calls 5

lengthMethod · 0.95
incrementMethod · 0.95
getMethod · 0.95
incrementMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected