class_docstr: Vasicek results are compared with the R package vsgoftest.
  
  # library(vsgoftest)
  #
  # samp <- c(<values>)
  # entropy.estimate(x = samp, window = <window_length>)
class_docstr_tok: ["Vasicek","results","are","compared","with","the","R","package","vsgoftest",".","#","library","(","vsgoftest",")","#","#","samp","<","-","c","(","<","values",">",")","#","entropy.estimate","(","x","=","samp",",","window","=","<","window_length",">",")"]
code: def test_expon_rmse_std(self, method, expected):
      # test that RMSE and standard deviation of estimators matches values
      # given in differential_entropy reference [6]. Incidentally, also
      # tests vectorization.
      reps, n, m = 10000, 50, 7
      rmse_expected, std_expected = expected
      rvs = stats.expon.rvs(size=(reps, n), random_state=0)
      true_entropy = stats.expon.entropy()
      res = stats.differential_entropy(
          rvs, window_length=m, method=method, axis=-1
      )
      assert_allclose(
          np.sqrt(np.mean((res - true_entropy) ** 2)),
          rmse_expected,
          atol=0.005,
      )
      assert_allclose(np.std(res), std_expected, atol=0.002)
  
imports: import numpy
  from numpy.testing import assert_equal, assert_allclose
  from numpy.testing import assert_, assert_almost_equal, assert_array_almost_equal
  import pytest
  from pytest import raises
  import scipy.stats
label_desc: Use image node_id 9 for calling the TestDifferentialEntropy obj's underlying member method code with example usage: obj.test_expon_rmse_std(method, expected) without return types