class_docstr: Test circular.py.
class_docstr_tok: ["Test","circular.py","."]
docstr: Test function circ_rayleigh.
docstr_tok: ["Test","function","circ_rayleigh","."]
code: def test_circ_rayleigh(self):
      """Test function circ_rayleigh."""
      x = [0.785, 1.570, 3.141, 0.839, 5.934]
      z, pval = circ_rayleigh(x)
      # Compare with the CircStats MATLAB toolbox
      assert round(z, 3) == 1.236
      assert round(pval, 4) == 0.3048
      z, pval = circ_rayleigh(x, w=[0.1, 0.2, 0.3, 0.4, 0.5], d=0.2)
      assert round(z, 3) == 0.278
      assert round(pval, 4) == 0.8070
  
file_path: pingouin/pingouin/tests/test_circular.py
imports: import pytest
  import numpy
  from unittest import TestCase
  from scipy.stats import circmean
  from pingouin import read_dataset
  from pingouin.circular import convert_angles, _checkangles
  from pingouin.circular import circ_axial, circ_corrcc, circ_corrcl, circ_mean, circ_r, circ_rayleigh, circ_vtest
label_desc: Use image node_id 7 for calling the TestCircular obj's underlying member method code with example usage: obj.test_circ_rayleigh() without return types