maxent-0.1.0.0: maxent.cabal
-- Initial maxent.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: maxent
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.1.0.0
-- A short (one-line) description of the package.
synopsis: Compute Maximum Entropy Distrubtions
-- A longer description of the package.
description: Use this package to compute maximum entropy distributions given a list of values and
list of constraints.
.
Here is a the example from Probability the Logic of Science
.
 > maxent ([1,2,3], [average 1.5])
.
Right [0.61, 0.26, 0.11]
.
The classic dice example
.
 > maxent ([1,2,3,4,5,6], [average 4.5])
.
Right [.05, .07, 0.11, 0.16, 0.23, 0.34]
I will document this more ... soonish
-- 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: Jonathan Fischoff
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: jonathangfischoff@gmail.com
-- A copyright notice.
-- copyright:
category: Math
build-type: Simple
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.8
library
-- Modules exported by the library.
exposed-modules: MaxEnt
-- Modules included in this library but not exported.
other-modules: MaxEnt.Internal
-- Other library packages from which modules are imported.
build-depends: base ==4.6.*,
nonlinear-optimization ==0.3.*,
vector ==0.9.*,
ad ==3.2.*
-- Directories containing source files.
hs-source-dirs: src