org.apache.commons.math3.geometry.Space Java Examples

The following examples show how to use org.apache.commons.math3.geometry.Space. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Vector3DTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector3D(1, 2, 2).getSpace();
    Assert.assertEquals(3, space.getDimension());
    Assert.assertEquals(2, space.getSubSpace().getDimension());
    Space deserialized = (Space) TestUtils.serializeAndRecover(space);
    Assert.assertTrue(space == deserialized);
}
 
Example #2
Source File: Vector3DTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector3D(1, 2, 2).getSpace();
    Assert.assertEquals(3, space.getDimension());
    Assert.assertEquals(2, space.getSubSpace().getDimension());
    Space deserialized = (Space) TestUtils.serializeAndRecover(space);
    Assert.assertTrue(space == deserialized);
}
 
Example #3
Source File: Vector3DTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector3D(1, 2, 2).getSpace();
    Assert.assertEquals(3, space.getDimension());
    Assert.assertEquals(2, space.getSubSpace().getDimension());
    Space deserialized = (Space) TestUtils.serializeAndRecover(space);
    Assert.assertTrue(space == deserialized);
}
 
Example #4
Source File: Vector3DTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector3D(1, 2, 2).getSpace();
    Assert.assertEquals(3, space.getDimension());
    Assert.assertEquals(2, space.getSubSpace().getDimension());
    Space deserialized = (Space) TestUtils.serializeAndRecover(space);
    Assert.assertTrue(space == deserialized);
}
 
Example #5
Source File: Vector3DTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector3D(1, 2, 2).getSpace();
    Assert.assertEquals(3, space.getDimension());
    Assert.assertEquals(2, space.getSubSpace().getDimension());
    Space deserialized = (Space) TestUtils.serializeAndRecover(space);
    Assert.assertTrue(space == deserialized);
}
 
Example #6
Source File: Vector3D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #7
Source File: Vector1D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean1D.getInstance();
}
 
Example #8
Source File: 1_Vector3D.java    From SimFix with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #9
Source File: Vector2D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean2D.getInstance();
}
 
Example #10
Source File: Vector1D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean1D.getInstance();
}
 
Example #11
Source File: Vector3D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #12
Source File: Vector2D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean2D.getInstance();
}
 
Example #13
Source File: Vector1D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean1D.getInstance();
}
 
Example #14
Source File: Vector3D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #15
Source File: Vector2D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean2D.getInstance();
}
 
Example #16
Source File: Vector1D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean1D.getInstance();
}
 
Example #17
Source File: Vector3D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #18
Source File: Vector2D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean2D.getInstance();
}
 
Example #19
Source File: S1Point.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Sphere1D.getInstance();
}
 
Example #20
Source File: S2Point.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Sphere2D.getInstance();
}
 
Example #21
Source File: Vector1D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean1D.getInstance();
}
 
Example #22
Source File: Vector3D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}
 
Example #23
Source File: Vector2D.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean2D.getInstance();
}
 
Example #24
Source File: Sphere1Test.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSerialization() {
    Space s1 = Sphere1D.getInstance();
    Space deserialized = (Space) TestUtils.serializeAndRecover(s1);
    Assert.assertTrue(s1 == deserialized);
}
 
Example #25
Source File: Vector1DTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSpace() {
    Space space = new Vector1D(1).getSpace();
    Assert.assertEquals(1, space.getDimension());
}
 
Example #26
Source File: Euclidean1DTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSerialization() {
    Space e1 = Euclidean1D.getInstance();
    Space deserialized = (Space) TestUtils.serializeAndRecover(e1);
    Assert.assertTrue(e1 == deserialized);
}
 
Example #27
Source File: Euclidean3DTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSerialization() {
    Space e3 = Euclidean3D.getInstance();
    Space deserialized = (Space) TestUtils.serializeAndRecover(e3);
    Assert.assertTrue(e3 == deserialized);
}
 
Example #28
Source File: Euclidean2DTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSerialization() {
    Space e2 = Euclidean2D.getInstance();
    Space deserialized = (Space) TestUtils.serializeAndRecover(e2);
    Assert.assertTrue(e2 == deserialized);
}
 
Example #29
Source File: Sphere1Test.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Test
public void testSerialization() {
    Space s1 = Sphere1D.getInstance();
    Space deserialized = (Space) TestUtils.serializeAndRecover(s1);
    Assert.assertTrue(s1 == deserialized);
}
 
Example #30
Source File: Cardumen_00110_s.java    From coming with MIT License 4 votes vote down vote up
/** {@inheritDoc} */
public Space getSpace() {
    return Euclidean3D.getInstance();
}