github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

namin / spots

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

various code snippets in various languages — Read more

  cancel

http://spotless-spots.blogspot.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

typo fix 
olpc (author)
Wed Mar 18 16:31:04 -0700 2009
commit  fb5d7f36a7a5a302e3f2dd3086faeffa1763716f
tree    053d01820de7456e771a65062d11992ac007412e
parent  266a015ff090cea119e4356eae0cba32be6b02d1
spots / probabilisticModeling
name age
history
message
..
file README.markdown Loading commit data...
file probabilisticModeling.fsx
file probabilisticModeling.hs
file probabilisticModeling.scala
probabilisticModeling/README.markdown

Probabilistic Modeling

For my induction into Scala, I wanted to translate the probabilistic monad of Chapter 9 of Expert F# (Introducing Language-Oriented Programming). The idea, based on the paper Stochastic Lambda Calculus and Monads of Probability Distributions, is to define a probability monad to compute over distributions of a domain instead of the domain itself. We limit ourselves to distributions over discrete domains characterized by three functions:

  1. sampling
  2. support (i.e. a set of values where all elements outside the set have zero chance of being sampled)
  3. expectation of a function over the distribution (e.g. the probability of selecting element A by evaluating the function f(x) = 1 if x equals A and 0 otherwise)
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server