| Trees | Indices | Help |
|
|---|
|
|
1 ###############################################################################
2 # #
3 # Copyright (C) 2015 Edward d'Auvergne #
4 # #
5 # This file is part of the program relax (http://www.nmr-relax.com). #
6 # #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
11 # #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
16 # #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 # #
20 ###############################################################################
21
22 # Module docstring.
23 """The statistics user function definitions."""
24
25 # relax module imports.
26 from graphics import WIZARD_IMAGE_PATH
27 from pipe_control.statistics import aic, model_statistics
28 from user_functions.data import Uf_info; uf_info = Uf_info()
29 from user_functions.objects import Desc_container
30
31
32 # The user function class.
33 uf_class = uf_info.add_class('statistics')
34 uf_class.title = "Class containing the statistics related functions."
35 uf_class.menu_text = "&statistics"
36 uf_class.gui_icon = "oxygen.actions.office-chart-pie"
37
38
39 # The statistics.aic user function.
40 uf = uf_info.add_uf('statistics.aic')
41 uf.title = "Calculate and store Akaike's Information Criterion (AIC) for each model."
42 uf.title_short = "Calculate AIC values."
43 # Description.
44 uf.desc.append(Desc_container())
45 uf.desc[-1].add_paragraph("This will perform a calculation to obtain the chi-squared statistic for the current parameter values for each model, count the number of parameters per model and calculate Akaike's Information Criterion (AIC) using the formula AIC = chi2 + 2k. The AIC values, chi-squared values, and number of parameters will be stored in the appropriate location for the model in the relax data store.")
46 uf.backend = aic
47 uf.menu_text = "&aic"
48 uf.gui_icon = "relax.discrepancy_curve"
49 uf.wizard_apply_button = False
50 uf.wizard_size = (700, 400)
51 uf.wizard_image = WIZARD_IMAGE_PATH + 'statistics.png'
52
53
54 # The statistics.model user function.
55 uf = uf_info.add_uf('statistics.model')
56 uf.title = "Calculate and store the model statistics."
57 uf.title_short = "Model statistics."
58 # Description.
59 uf.desc.append(Desc_container())
60 uf.desc[-1].add_paragraph("This will perform a back-calculation to obtain the chi-squared statistic for the current parameter values, count the number of parameters and data points per model, and place all the values in the relax data store.")
61 uf.backend = model_statistics
62 uf.menu_text = "&model"
63 uf.gui_icon = "oxygen.categories.applications-education"
64 uf.wizard_apply_button = False
65 uf.wizard_size = (700, 400)
66 uf.wizard_image = WIZARD_IMAGE_PATH + 'statistics.png'
67
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Jun 8 10:44:58 2024 | http://epydoc.sourceforge.net |