Skip to content

Commit 917788b

Browse files
Merge pull request #2 from williamjameshandley/order_correction
Correcting argument ordering in `VonMises_std` in `SphericalKDE.__init__`
2 parents ea4fed3 + a0148fc commit 917788b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

plot.png

5.27 KB
Loading

spherical_kde/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, phi_samples, theta_samples,
6868
"shape as weights ({}!={})".format(
6969
len(self.phi), len(self.weights)))
7070

71-
sigmahat = VonMises_std(self.theta, self.phi)
71+
sigmahat = VonMises_std(self.phi, self.theta)
7272
self.suggested_bandwidth = 1.06*sigmahat*len(weights)**-0.2
7373

7474
def __call__(self, phi, theta):

0 commit comments

Comments
 (0)