Angular Correlation
aacorr(a, b, method='fl', test=False, strict=True)
Angular-Angular Correlation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a
|
Union[Type[Circular], ndarray]
|
Angles in radian |
required |
b
|
Union[Type[Circular], ndarray]
|
Angles in radian |
required |
method
|
str
|
|
'fl'
|
test
|
bool
|
Return significant test results. |
False
|
strict
|
bool
|
Strict mode. If True, raise an error when mean direction is not significant. Only for Jammalamadaka & SenGupta (2001) |
True
|
Returns:
Name | Type | Description |
---|---|---|
r |
float
|
Correlation coefficient. |
reject |
bool
|
Return significant test if |
Source code in pycircstat2/correlation.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
alcorr(a, x)
Angular-Linear Correlation based on Mardia (1972)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a
|
Union[Type[Circular], ndarray]
|
Angles in radian |
required |
x
|
ndarray
|
Linear variable |
required |
Returns:
Name | Type | Description |
---|---|---|
ral |
float
|
correlation coefficient. |
pval |
float
|
|
Reference
P658-659, Section 27.15(b) of Example 27.21 (Zar, 2010).
Source code in pycircstat2/correlation.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
|