def test_discrete_shape_parameters(self):
    'Test scaling discrete shape parameters.'
    expected = [np.array([(- 3), (- 2.666667), (- 2.5)]), np.array([7, 4, 2.5])]
    shape_parameters = [(- 4), 6]
    plugin = Plugin(distribution='truncnorm', shape_parameters=shape_parameters)
    plugin._rescale_shape_parameters(self.location_parameter, self.scale_parameter)
    self.assertArrayAlmostEqual(plugin.shape_parameters, expected)
Test scaling discrete shape parameters.
def test_discrete_shape_parameters(self):
    
    expected = [np.array([(- 3), (- 2.666667), (- 2.5)]), np.array([7, 4, 2.5])]
    shape_parameters = [(- 4), 6]
    plugin = Plugin(distribution='truncnorm', shape_parameters=shape_parameters)
    plugin._rescale_shape_parameters(self.location_parameter, self.scale_parameter)
    self.assertArrayAlmostEqual(plugin.shape_parameters, expected)