Skip to content

Commit

Permalink
Merge pull request #2 from williamjameshandley/order_correction
Browse files Browse the repository at this point in the history
Correcting argument ordering in `VonMises_std` in  `SphericalKDE.__init__`
  • Loading branch information
williamjameshandley authored Sep 21, 2020
2 parents ea4fed3 + a0148fc commit 917788b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion spherical_kde/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, phi_samples, theta_samples,
"shape as weights ({}!={})".format(
len(self.phi), len(self.weights)))

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

def __call__(self, phi, theta):
Expand Down

0 comments on commit 917788b

Please sign in to comment.