use of org.hipparchus.random.RandomGenerator in project Orekit by CS-SI.
the class NRLMSISE00Test method testGlobe7SwitchesOff.
@Test
public void testGlobe7SwitchesOff() throws OrekitException {
RandomGenerator random = new Well19937a(0x778b486a40464b8fl);
NRLMSISE00 atm = new NRLMSISE00(null, null, null);
for (int i = 1; i <= 23; ++i) {
atm = atm.withSwitch(i, 0);
}
doTestDoubleMethod(atm, random, "globe7", 1.0e-50, 1.0e-50);
}
use of org.hipparchus.random.RandomGenerator in project Orekit by CS-SI.
the class NRLMSISE00Test method testGlob7sSwitchesOff.
@Test
public void testGlob7sSwitchesOff() throws OrekitException {
RandomGenerator random = new Well19937a(0x141f7aa933299a83l);
NRLMSISE00 atm = new NRLMSISE00(null, null, null);
for (int i = 1; i <= 23; ++i) {
atm = atm.withSwitch(i, 0);
}
doTestDoubleMethod(atm, random, "glob7s", 1.0e-50, 1.0e-50);
}
use of org.hipparchus.random.RandomGenerator in project Orekit by CS-SI.
the class NRLMSISE00Test method testGlobe7SwitchesRandom.
@Test
public void testGlobe7SwitchesRandom() throws OrekitException {
RandomGenerator random = new Well19937a(0xe20a69235cc9583dl);
NRLMSISE00 atm = new NRLMSISE00(null, null, null);
for (int i = 1; i <= 23; ++i) {
atm = atm.withSwitch(i, random.nextInt(3) - 2);
}
doTestDoubleMethod(atm, random, "globe7", 3.0e-14, 4.0e-16);
}
use of org.hipparchus.random.RandomGenerator in project Orekit by CS-SI.
the class NRLMSISE00Test method testgts7SwitchesOff.
@Test
public void testgts7SwitchesOff() throws OrekitException {
RandomGenerator random = new Well19937a(0x0c953641bea0f6d2l);
NRLMSISE00 atm = new NRLMSISE00(null, null, null);
for (int i = 1; i <= 23; ++i) {
atm = atm.withSwitch(i, 0);
}
doTestVoidMethod(atm, random, "gts7", 1.0e-50, 6.0e-14);
}
use of org.hipparchus.random.RandomGenerator in project Orekit by CS-SI.
the class NRLMSISE00Test method testgts7SwitchesRandom.
@Test
public void testgts7SwitchesRandom() throws OrekitException {
RandomGenerator random = new Well19937a(0x7347cacb946cb93bl);
NRLMSISE00 atm = new NRLMSISE00(null, null, null);
for (int i = 1; i <= 23; ++i) {
atm = atm.withSwitch(i, random.nextInt(3) - 2);
}
doTestVoidMethod(atm, random, "gts7", 1.0e-50, 6.0e-14);
}
Aggregations