class_docstr: Test circular.py.
class_docstr_tok: ["Test","circular.py","."]
docstr: Test function circ_r.
docstr_tok: ["Test","function","circ_r","."]
code: def test_circ_r(self):
      """Test function circ_r."""
      x = [0.785, 1.570, 3.141, 0.839, 5.934]
      x_nan = np.array([0.785, 1.570, 3.141, 0.839, 5.934, np.nan])
      # Compare with the CircStats MATLAB toolbox
      assert np.round(circ_r(x), 3) == 0.497
      assert np.round(circ_r(x_nan), 3) == 0.497
  
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 6 for calling the TestCircular obj's underlying member method code with example usage: obj.test_circ_r() without return types