Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void test()
        public virtual void test()
        {
            for (int i = 0; i < 10; i++)
            {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final double y = 5 * NORMAL.nextRandom();
                double y = 5 * NORMAL.nextRandom();
                assertRoundTrip(NULL_TRANSFORM, y);
                assertReverseRoundTrip(NULL_TRANSFORM, y);
                assertGradient(NULL_TRANSFORM, y);
                assertInverseGradient(NULL_TRANSFORM, y);
                assertGradientRoundTrip(NULL_TRANSFORM, y);
            }
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testUpper()
        public virtual void testUpper()
        {
            for (int i = 0; i < 10; i++)
            {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final double x = A + 5 * Math.log(RANDOM.nextDouble());
                double x = A + 5 * Math.Log(RANDOM.NextDouble());
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final double y = 5 * NORMAL.nextRandom();
                double y = 5 * NORMAL.nextRandom();
                assertRoundTrip(UPPER_LIMIT, x);
                assertReverseRoundTrip(UPPER_LIMIT, y);
                assertGradient(UPPER_LIMIT, x);
                assertInverseGradient(UPPER_LIMIT, y);
                assertGradientRoundTrip(UPPER_LIMIT, x);
            }
        }