|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.analysis.solvers.BrentSolverTest
public final class BrentSolverTest
Testcase for UnivariateRealSolver. Because Brent-Dekker is guaranteed to converge in less than the default maximum iteration count due to bisection fallback, it is quite hard to debug. I include measured iteration counts plus one in order to detect regressions. On average Brent-Dekker should use 4..5 iterations for the default absolute accuracy of 10E-8 for sinus and the quintic function around zero, and 5..10 iterations for the other zeros.
Constructor Summary | |
---|---|
BrentSolverTest(String name)
|
Method Summary | |
---|---|
static junit.framework.Test |
suite()
|
void |
testBadEndpoints()
|
void |
testDeprecated()
Deprecated. |
void |
testInitialGuess()
|
void |
testQuinticZero()
|
void |
testRootEndpoints()
|
void |
testSinZero()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrentSolverTest(String name)
Method Detail |
---|
public static junit.framework.Test suite()
@Deprecated public void testDeprecated() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testSinZero() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuinticZero() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testRootEndpoints() throws Exception
Exception
public void testBadEndpoints() throws Exception
Exception
public void testInitialGuess() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |