interpolate.tests.test_interpolate

Module Contents

Functions

_ppoly_eval_1(c,x,xps) Evaluate piecewise polynomial manually
_ppoly_eval_2(coeffs,breaks,xnew,fill=None) Evaluate piecewise polynomial manually (another way)
_dpow(x,y,n) d^n (x**y) / dx^n
_ppoly2d_eval(c,xs,xnew,ynew,nu=None) Straightforward evaluation of 2D piecewise polynomial
_ppoly3d_eval(c,xs,xnew,ynew,znew,nu=None) Straightforward evaluation of 3D piecewise polynomial
_ppoly4d_eval(c,xs,xnew,ynew,znew,unew,nu=None) Straightforward evaluation of 4D piecewise polynomial
class TestInterp2D
test_interp2d()
test_interp2d_meshgrid_input()
test_interp2d_meshgrid_input_unsorted()
test_interp2d_eval_unsorted()
test_interp2d_linear()
test_interp2d_bounds()
class TestInterp1D
setup_method()
test_validation()
test_init()
test_assume_sorted()
test_linear()
_check_linear(kind)
test_linear_dtypes()
test_slinear_dtypes()
test_cubic()
test_nearest()
test_zero()
_bounds_check(kind="linear")
_bounds_check_int_nan_fill(kind="linear")
test_bounds()
_check_fill_value(kind)
test_fill_value()
test_fill_value_writeable()
_nd_check_interp(kind="linear")
_nd_check_shape(kind="linear")
test_nd()
_check_complex(dtype=None, kind="linear")
test_complex()
test_circular_refs()
test_overflow_nearest()
test_local_nans()
test_spline_nans()
class TestLagrange
test_lagrange()
class TestAkima1DInterpolator
test_eval()
test_eval_2d()
test_eval_3d()
test_degenerate_case_multidimensional()
test_extend()
class TestPPolyCommon
test_sort_check()
test_ctor_c()
test_extend()
test_extend_diff_orders()
test_extend_descending()
test_shape()
test_complex_coef()
test_axis()
class TestPolySubclassing
class P
class B
_make_polynomials()
test_derivative()
test_from_spline()
test_conversions()
test_from_derivatives()
class TestPPoly
test_simple()
test_periodic()
test_descending()
test_multi_shape()
test_construct_fast()
test_vs_alternative_implementations()
test_from_spline()
test_derivative_simple()
test_derivative_eval()
test_derivative()
test_antiderivative_of_constant()
test_antiderivative_regression_4355()
test_antiderivative_simple()
test_antiderivative_vs_derivative()
test_antiderivative_vs_spline()
test_antiderivative_continuity()
test_integrate()
test_integrate_periodic()
test_roots()
test_roots_idzero()
test_roots_all_zero()
test_roots_repeated()
test_roots_discont()
test_roots_random()
test_roots_croots()
test_extrapolate_attr()
class TestBPoly
test_simple()
test_simple2()
test_simple3()
test_simple4()
test_simple5()
test_periodic()
test_descending()
test_multi_shape()
test_interval_length()
test_two_intervals()
test_extrapolate_attr()
class TestBPolyCalculus
test_derivative()
test_derivative_ppoly()
test_deriv_inplace()
test_antiderivative_simple()
test_der_antider()
test_antider_ppoly()
test_antider_continuous()
test_integrate()
test_integrate_extrap()
test_integrate_periodic()
test_antider_neg()
class TestPolyConversions
test_bp_from_pp()
test_bp_from_pp_random()
test_pp_from_bp()
class TestBPolyFromDerivatives
test_make_poly_1()
test_make_poly_2()
test_make_poly_3()
test_make_poly_12()
test_raise_degree()
test_xi_yi()
test_coords_order()
test_zeros()
_make_random_mk(m, k)
test_random_12()
test_order_zero()
test_orders_too_high()
test_orders_global()
test_orders_local()
test_yi_trailing_dims()
test_gh_5430()
class TestNdPPoly
test_simple_1d()
test_simple_2d()
test_simple_3d()
test_simple_4d()
test_deriv_1d()
test_deriv_3d()
test_deriv_3d_simple()
test_integrate_2d()
test_integrate_1d()
_ppoly_eval_1(c, x, xps)

Evaluate piecewise polynomial manually

_ppoly_eval_2(coeffs, breaks, xnew, fill=None)

Evaluate piecewise polynomial manually (another way)

_dpow(x, y, n)

d^n (x**y) / dx^n

_ppoly2d_eval(c, xs, xnew, ynew, nu=None)

Straightforward evaluation of 2D piecewise polynomial

_ppoly3d_eval(c, xs, xnew, ynew, znew, nu=None)

Straightforward evaluation of 3D piecewise polynomial

_ppoly4d_eval(c, xs, xnew, ynew, znew, unew, nu=None)

Straightforward evaluation of 4D piecewise polynomial

class TestRegularGridInterpolator
_get_sample_4d()
_get_sample_4d_2()
test_list_input()
test_complex()
test_linear_xi1d()
test_linear_xi3d()
test_nearest()
test_linear_edges()
test_valid_create()
test_valid_call()
test_out_of_bounds_extrap()
test_out_of_bounds_extrap2()
test_out_of_bounds_fill()
test_nearest_compare_qhull()
test_linear_compare_qhull()
test_duck_typed_values()
test_invalid_fill_value()
test_fillvalue_type()
class MyValue(shape)

Minimal indexable object

__init__(shape)
__getitem__(idx)
__array_interface__()
__array__()
class TestInterpN
_sample_2d_data()
test_spline_2d()
test_list_input()
test_spline_2d_outofbounds()
_sample_4d_data()
test_linear_4d()
test_4d_linear_outofbounds()
test_nearest_4d()
test_4d_nearest_outofbounds()
test_xi_1d()
test_xi_nd()
test_xi_broadcast()
test_nonscalar_values()
test_complex()
test_duck_typed_values()
test_matrix_input()