class documentation

class TestPercentile:

View In Hierarchy

Undocumented

Constant H​_F​_TYPE​_CODES Undocumented
Constant TYPE​_CODES Undocumented
Method test_2​D Undocumented
Method test​_api Undocumented
Method test​_axis Undocumented
Method test​_basic Undocumented
Method test​_exception Undocumented
Method test​_extended​_axis Undocumented
Method test​_extended​_axis​_invalid Undocumented
Method test​_fraction Undocumented
Method test​_keepdims Undocumented
Method test​_linear​_interpolation Undocumented
Method test​_linear​_interpolation​_extrapolation Undocumented
Method test_linear_nan_1​D Undocumented
Method test​_lower​_higher Undocumented
Method test​_midpoint Undocumented
Method test​_nan​_behavior Undocumented
Method test​_nan​_q Undocumented
Method test​_nearest Undocumented
Method test​_no​_p​_overwrite Undocumented
Method test​_out Undocumented
Method test​_out​_nan Undocumented
Method test​_percentile​_empty​_dim Undocumented
Method test​_percentile​_list Undocumented
Method test​_percentile​_no​_overwrite Undocumented
Method test​_percentile​_out Undocumented
Method test​_percentile​_overwrite Undocumented
Method test​_scalar​_q Undocumented
Method test​_sequence Undocumented
H_F_TYPE_CODES =

Undocumented

Value
[(int_type, np.float64) for int_type in np.typecodes['AllInteger']]+[(np.float16
,
                                                                      np.float64
),
                                                                     (np.float32
,
                                                                      np.float64
...
TYPE_CODES =

Undocumented

Value
(np.typecodes['AllInteger']+np.typecodes['AllFloat'])+'O'
def test_2D(self):

Undocumented

def test_api(self):

Undocumented

def test_axis(self):

Undocumented

def test_basic(self):

Undocumented

def test_exception(self):

Undocumented

def test_extended_axis(self):

Undocumented

def test_extended_axis_invalid(self):

Undocumented

def test_fraction(self):

Undocumented

def test_keepdims(self):

Undocumented

@pytest.mark.parametrize(['input_dtype', 'expected_dtype'], H_F_TYPE_CODES)
@pytest.mark.parametrize(['method', 'expected'], [('inverted_cdf', 20), ('averaged_inverted_cdf', 27.5), ('closest_observation', 20), ('interpolated_inverted_cdf', 20), ('hazen', 27.5), ('weibull', 26), ('linear', 29), ('median_unbiased', 27), ('normal_unbiased', 27.125)])
def test_linear_interpolation(self, method, expected, input_dtype, expected_dtype):

Undocumented

def test_linear_interpolation_extrapolation(self):

Undocumented

@pytest.mark.parametrize('dtype', np.typecodes['AllFloat'])
def test_linear_nan_1D(self, dtype):

Undocumented

@pytest.mark.parametrize('dtype', TYPE_CODES)
def test_lower_higher(self, dtype):

Undocumented

@pytest.mark.parametrize('dtype', TYPE_CODES)
def test_midpoint(self, dtype):

Undocumented

def test_nan_behavior(self):

Undocumented

def test_nan_q(self):

Undocumented

@pytest.mark.parametrize('dtype', TYPE_CODES)
def test_nearest(self, dtype):

Undocumented

def test_no_p_overwrite(self):

Undocumented

def test_out(self):

Undocumented

def test_out_nan(self):

Undocumented

def test_percentile_empty_dim(self):

Undocumented

def test_percentile_list(self):

Undocumented

def test_percentile_no_overwrite(self):

Undocumented

def test_percentile_out(self):

Undocumented

def test_percentile_overwrite(self):

Undocumented

def test_scalar_q(self):

Undocumented

def test_sequence(self):

Undocumented