-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bingham statistics #33
Comments
Have you had a look at various functionality in https://github.com/joferkington/mplstereonet/blob/master/mplstereonet/analysis.py ? For orientations, the axes are identical to what you'd get by estimating the full Bingham distribution. (You actually have to use the same method to estimate the axes when fitting a Bingham distribution -- it's still eigenvectors of the covariance matrix of orientations to get the axes.) You don't get the additional shape parameters of the distribution, of course, but the fitting methods there may very well do what you need. That having been said, I'd welcome a |
Ugly piece of code but this does bingham stats:
def dir_cos(value):
#initialize empty dictionaries for key, value in dict_ori.items():
ori_cols = ['e3-Dip', 'e3-Dip Az.', 'e2-Dip', 'e2-Dip Az.', 'e1-Dip', 'e1-Dip Az.', 'Eigenvalues', 'Count'] df_mean = pd.DataFrame.from_dict(dict_mean, orient = 'index', columns = ori_cols) |
Only Fisher stats are available in stereonet_math.py, and these are not ideal to calculate the mean value of a series of planes or lines.
A new function (bingham_stats) that would provide the orientation of the three axes and the Bingham best fit plane would be beneficial. I need to calculate these for a project, so I hope to be able to propose a solution to this issue within the next two months.
The text was updated successfully, but these errors were encountered: