Test of variance method, of class SparseVector.
()
| 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. |