org.apache.commons.math3.analysis.solvers
Class BaseSecantSolverAbstractTest

java.lang.Object
  extended by org.apache.commons.math3.analysis.solvers.BaseSecantSolverAbstractTest
Direct Known Subclasses:
BracketingNthOrderBrentSolverTest, IllinoisSolverTest, PegasusSolverTest, RegulaFalsiSolverTest, SecantSolverTest

public abstract class BaseSecantSolverAbstractTest
extends Object

Base class for root-finding algorithms tests derived from BaseSecantSolver.

Version:
$Id$

Constructor Summary
BaseSecantSolverAbstractTest()
           
 
Method Summary
protected abstract  int[] getQuinticEvalCounts()
          Returns the expected number of evaluations for the testQuinticZero() unit test.
protected abstract  UnivariateSolver getSolver()
          Returns the solver to use to perform the tests.
 void testBadEndpoints()
           
 void testQuinticZero()
           
 void testRootEndpoints()
           
 void testSinZero()
           
 void testSolutionAboveSide()
           
 void testSolutionBelowSide()
           
 void testSolutionLeftSide()
           
 void testSolutionRightSide()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecantSolverAbstractTest

public BaseSecantSolverAbstractTest()
Method Detail

getSolver

protected abstract UnivariateSolver getSolver()
Returns the solver to use to perform the tests.

Returns:
the solver to use to perform the tests

getQuinticEvalCounts

protected abstract int[] getQuinticEvalCounts()
Returns the expected number of evaluations for the testQuinticZero() unit test. A value of -1 indicates that the test should be skipped for that solver.

Returns:
the expected number of evaluations for the testQuinticZero() unit test

testSinZero

public void testSinZero()

testQuinticZero

public void testQuinticZero()

testRootEndpoints

public void testRootEndpoints()

testBadEndpoints

public void testBadEndpoints()

testSolutionLeftSide

public void testSolutionLeftSide()

testSolutionRightSide

public void testSolutionRightSide()

testSolutionBelowSide

public void testSolutionBelowSide()

testSolutionAboveSide

public void testSolutionAboveSide()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.