forked from jfischoff/maxent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaxent.cabal
107 lines (86 loc) · 3.23 KB
/
maxent.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
-- Initial maxent.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: maxent
version: 0.7
-- A short (one-line) description of the package.
synopsis: Compute Maximum Entropy Distributions
-- A longer description of the package.
description:
The maximum entropy method, or MAXENT, is variational approach for computing probability
distributions given a list of moment, or expected value, constraints.
.
Here are some links for background info.
.
A good overview of applications:
<http://cmm.cit.nih.gov/maxent/letsgo.html>
.
On the idea of maximum entropy in general:
<http://en.wikipedia.org/wiki/Principle_of_maximum_entropy>
.
Use this package to compute discrete maximum entropy distributions over a list of values and
list of constraints.
.
Here is a the example from Probability the Logic of Science
.
>> maxent 0.00001 [1,2,3] [average 1.5]
> Right [0.61, 0.26, 0.11]
.
The classic dice example
.
>> maxent 0.00001 [1,2,3,4,5,6] [average 4.5]
> Right [.05, .07, 0.11, 0.16, 0.23, 0.34]
.
One can use different constraints besides the average value there.
-- URL for the project homepage or repository.
homepage: https://github.com/jfischoff/maxent
-- The license under which the package is released.
license: BSD3
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: (c) Jonathan Fischoff 2012-2014, (c) Eric Pashman 2014
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: [email protected]
-- A copyright notice.
-- copyright:
category: Math
build-type: Simple
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.12
library
ghc-options: -Wall
-- Modules exported by the library.
exposed-modules: Numeric.MaxEnt
-- Modules included in this library but not exported.
other-modules: Numeric.MaxEnt.Internal,
Numeric.MaxEnt.Linear,
Numeric.MaxEnt.ConjugateGradient
Numeric.MaxEnt.Moment,
Numeric.MaxEnt.General
-- Other library packages from which modules are imported.
build-depends: base >=4.5 && < 5,
nonlinear-optimization == 0.3.*,
vector == 0.10.*,
ad >= 4 && < 5,
lagrangian == 0.6.*
-- Directories containing source files.
hs-source-dirs: src
default-language: Haskell2010
Test-Suite tests
hs-source-dirs: src, tests
type: exitcode-stdio-1.0
main-is: Main.hs
build-depends: base >=4.5 && < 5,
nonlinear-optimization ==0.3.*,
vector ==0.10.*,
ad >= 4 && < 5,
hmatrix >= 0.14 && < 0.17,
lagrangian == 0.6.*,
QuickCheck,
test-framework-quickcheck2 == 0.3.*,
test-framework-quickcheck2 == 0.3.*,
test-framework-hunit == 0.3.*,
test-framework == 0.8.*
default-language: Haskell2010