SensitivityAnalysisTest module

class SensitivityAnalysisTest.TestGetCC(methodName='runTest')

Bases: unittest.case.TestCase

This unittest test case tests the getCC function for
  • bad inputs and parameters

setUp()

The setUp function is ran before every test case

test_param_type()
test_param_value()
test_runtime()
class SensitivityAnalysisTest.TestGetEE(methodName='runTest')

Bases: unittest.case.TestCase

This unittest test case tests the getEE function for
  • bad inputs and parameters

setUp()

The setUp function is ran before every test case

test_param_type()
test_param_value()
test_runtime()
class SensitivityAnalysisTest.TestGetuCC(methodName='runTest')

Bases: unittest.case.TestCase

This unittest test case tests the getuCC function for
  • bad inputs and parameters

setUp()

The setUp function is ran before every test case

test_param_type()
test_param_value()
test_runtime()
class SensitivityAnalysisTest.TestGetuEE(methodName='runTest')

Bases: unittest.case.TestCase

This unittest test case tests the getuEE function for
  • bad inputs and parameters

setUp()

The setUp function is ran before every test case

test_param_type()
test_param_value()
test_runtime()
class SensitivityAnalysisTest.TestRichardsonExtrapolation(methodName='runTest')

Bases: unittest.case.TestCase

Unit test framework for richardson_extrapolation_EE function in Sensitivity Analysis

test_cubic_polynomial()

Tests if the estimated derivative of richardson_extrapolation_EE function given a cubic polynomial (s^3 + 2*s^2 - 3*s) is close to the derivative of the function (3*s^2 + 4*s) evaluated from -6 to 6.

test_exponential()

Tests if the estimated derivative of richardson_extrapolation_EE function given an exponential f(x) = exp(x^2) is close to the derivative of the function f(x) = 2*x*exp(x^2) evaluated from -3 to 3.

test_inverse()

Tests if the estimated derivative of richardson_extrapolation_EE function given an inverse function f(x) = 1/x is close to the derivative of the function, f’(x) = -1/x^2 evaluated from 0.005 to 1.

test_log()

Tests if the estimated derivative of richardson_extrapolation_EE function given an inverse function f(x) = ln(x + sqrt(1 + x^2)) is close to the derivative of the function, f’(x) = -1/x^2 evaluated from 0.005 to 1.

test_sinc()

Tests if the estimated derivative of richardson_extrapolation_EE function given a sinc function is close to a cosine function evaluated from a range of 0 to 4 pi radians

test_sine()

Tests if the estimated derivative of richardson_extrapolation_EE function given a sine function is close to a cosine function evaluated from a range of 0 to 4 pi radians

test_sine_x_squared()

Tests if the estimated derivative of richardson_extrapolation_EE function given a function f(x) = sin(x^2) is close to the derivative of the function, f’(x) = 2x*cos(x^2) evaluated from -4 pi to 4 pi.

test_square_root()

Tests if the estimated derivative of richardson_extrapolation_EE function given a square root function f(x) = sqrt(x) is close to the derivative of the function f’(x) = 1/sqrt(x) evaluated from 10^-10 to 1000.

test_x_squared_cosine()

Tests if the estimated derivative of richardson_extrapolation_EE function given an inverse function f(x) = x^2*cos(2*x) is close to the derivative of the function, f’(x) = -2x(xsin(2x) - cos(2x)) evaluated from -4 pi to 4 pi.