docstr: Test the standard behaviour of fuzzy histogram.
docstr_tok: ["Test","the","standard","behaviour","of","fuzzy","histogram","."]
code: def test_fuzzy_histogram_std_behaviour(self):
      """Test the standard behaviour of fuzzy histogram."""
      values = scipy.random.randint(0, 10, 100)
  
      _, b = fuzzy_histogram(values, bins=12)
      self.assertEqual(
          len(b), 13, "violation of requested histogram size."
      )
      self.assertEqual(
          b[0], values.min(), "invalid lower histogram border."
      )
      self.assertEqual(
          b[-1], values.max(), "invalid upper histogram border."
      )
  
      h, _ = fuzzy_histogram(values, normed=True)
      self.assertAlmostEqual(sum(h), 1.0, msg="histogram not normed.")
  
      _, b = fuzzy_histogram(values, bins=12, guarantee=True)
      self.assertEqual(
          len(b),
          13,
          "violation of requested histogram size with guarantee set to True.",
      )
  
      _, b = fuzzy_histogram(values, range=(-5, 5))
      self.assertEqual(
          b[0], -5.0, "violation of requested ranges lower bound."
      )
      self.assertEqual(
          b[-1], 5.0, "violation of requested ranges lower bound."
      )
  
file_path: medpy/tests/features_/histogram.py
imports: import unittest
  import math
  import scipy
  from medpy.features.histogram import fuzzy_histogram, triangular_membership, trapezoid_membership, gaussian_membership, sigmoidal_difference_membership
label_desc: Use image node_id 6 for calling the TestHistogramFeatures obj's underlying member method code with example usage: obj.test_fuzzy_histogram_std_behaviour() without return types