1 | /*! |
---|
2 | * \file |
---|
3 | * \brief Include file for the IT++ statistics module |
---|
4 | * \author Adam Piatyszek and Conrad Sanderson |
---|
5 | * |
---|
6 | * ------------------------------------------------------------------------- |
---|
7 | * |
---|
8 | * Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors) |
---|
9 | * |
---|
10 | * This file is part of IT++ - a C++ library of mathematical, signal |
---|
11 | * processing, speech processing, and communications classes and functions. |
---|
12 | * |
---|
13 | * IT++ is free software: you can redistribute it and/or modify it under the |
---|
14 | * terms of the GNU General Public License as published by the Free Software |
---|
15 | * Foundation, either version 3 of the License, or (at your option) any |
---|
16 | * later version. |
---|
17 | * |
---|
18 | * IT++ is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
19 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
20 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
21 | * details. |
---|
22 | * |
---|
23 | * You should have received a copy of the GNU General Public License along |
---|
24 | * with IT++. If not, see <http://www.gnu.org/licenses/>. |
---|
25 | * |
---|
26 | * ------------------------------------------------------------------------- |
---|
27 | */ |
---|
28 | |
---|
29 | #ifndef ITSTAT_H |
---|
30 | #define ITSTAT_H |
---|
31 | |
---|
32 | /*! |
---|
33 | * \defgroup stat Statistics Module |
---|
34 | * @{ |
---|
35 | */ |
---|
36 | |
---|
37 | //! \defgroup histogram Histogram |
---|
38 | //! \defgroup statistics Miscellaneous Statistics Functions |
---|
39 | |
---|
40 | /*! \defgroup MOG Mixture of Gaussians (MOG) |
---|
41 | \brief Classes and functions for modelling multivariate data as a Mixture of Gaussians |
---|
42 | \author Conrad Sanderson |
---|
43 | |
---|
44 | The following example shows how to model data: |
---|
45 | \code |
---|
46 | Array<vec> X; |
---|
47 | // ... fill X with vectors ... |
---|
48 | int K = 3; // specify the number of Gaussians |
---|
49 | int D = 10; // specify the dimensionality of vectors |
---|
50 | MOG_diag model(K,D); |
---|
51 | MOG_diag_kmeans(model, X, 10, 0.5, true, true); // initial optimisation using 10 iterations of k-means |
---|
52 | MOG_diag_ML(model, X, 10, 0.0, 0.0, true); // final optimisation using 10 iterations of ML version of EM |
---|
53 | double avg = model.avg_log_lhood(X); // find the average log likelihood of X |
---|
54 | \endcode |
---|
55 | |
---|
56 | See also the tutorial section for a more elaborate example. |
---|
57 | */ |
---|
58 | |
---|
59 | /*! |
---|
60 | * @} |
---|
61 | */ |
---|
62 | |
---|
63 | |
---|
64 | #include <itpp/itbase.h> |
---|
65 | #include <itpp/stat/histogram.h> |
---|
66 | #include <itpp/stat/misc_stat.h> |
---|
67 | #include <itpp/stat/mog_generic.h> |
---|
68 | #include <itpp/stat/mog_diag.h> |
---|
69 | #include <itpp/stat/mog_diag_kmeans.h> |
---|
70 | #include <itpp/stat/mog_diag_em.h> |
---|
71 | |
---|
72 | #endif // #ifndef ITSTAT_H |
---|