markov-chain: Markov Chains for generating random sequences with a user definable behaviour.
This library can be used to generate random sequences of anything
with a behaviour that is adapted to some training data.
Input a marketing text or a speech and
recompose it to another arbitrary text of this sort.
Input a dictionary of person names and create new names.
Input a sequence of notes and get out a new melody.
Input a set of Haskell modules and generate ...
nice idea but the result will certainly have neither correct syntax nor types.
I think, it's a good thing about Haskell, that you cannot fool it so easily.
The idea is very simple:
The algorithm analyses your input/training data
with respect to how likely an a
or e
follows the letters r
and e
.
Then on recomposition it chooses subsequent letters randomly
according to the frequencies found in the training data.
This library is well suited for bull-shit generators.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
splitbase | Choose the new smaller, split-up base package. | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- markov-chain-0.0.3.4.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.0.1, 0.0.2, 0.0.3, 0.0.3.1, 0.0.3.2, 0.0.3.3, 0.0.3.4 |
---|---|
Dependencies | base (>=1.0 && <5), containers (>=0.1 && <1.0), random (>=1.0 && <2.0), transformers (>=0.0.1 && <0.7) [details] |
Tested with | ghc ==6.4.1 |
License | LicenseRef-GPL |
Author | Henning Thielemann <haskell@henning-thielemann.de> |
Maintainer | Henning Thielemann <haskell@henning-thielemann.de> |
Revised | Revision 1 made by HenningThielemann at 2023-02-16T12:00:31Z |
Category | Algorithms |
Home page | http://code.haskell.org/~thielema/markov-chain/ |
Source repo | this: darcs get http://code.haskell.org/~thielema/markov-chain/ --tag 0.0.3.4 head: darcs get http://code.haskell.org/~thielema/markov-chain/ |
Uploaded | by HenningThielemann at 2016-07-14T08:03:16Z |
Distributions | LTSHaskell:0.0.3.4, NixOS:0.0.3.4, Stackage:0.0.3.4 |
Reverse Dependencies | 6 direct, 10 indirect [details] |
Downloads | 10902 total (26 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2016-07-14 [all 1 reports] |