Title: | Conditional Probabilities of Distributions Across Hearts Hands |
---|---|
Description: | Provides some tabulated data to be be referred to in a discussion in a vignette accompanying my upcoming R package 'playWholeHandDriverPassParams'. In addition to that specific purpose, these may also provide data and illustrate some computational approaches that are relevant to card games like hearts or bridge.This package refers to authentic data from Gregory Stoll <https://gregstoll.com/~gregstoll/bridge/math.html>, and details of performing the probability calculations from Jeremy L. Martin <https://jlmartin.ku.edu/~jlmartin/bridge/basics.pdf>. |
Authors: | Barry Zeeberg [aut, cre] |
Maintainer: | Barry Zeeberg <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.0 |
Built: | 2024-11-03 05:36:21 UTC |
Source: | https://github.com/cran/conditionalProbNspades |
computes an array of probabilities of number of spades in an opponent's (unknown) hand
conditioned on the number of spades in my (known) hand
conditionalProbNspades(N)
conditionalProbNspades(N)
N |
N is the number of spades in my hand |
returns an array of probabilities of number of spades in an opponent's (unknown) hand
conditioned on the number of spades in my (known) hand
Barry Zeeberg
x<-conditionalProbNspades(4)
x<-conditionalProbNspades(4)
driver to invoke conditionalProbNspades
conditionalProbNspadesDriver()
conditionalProbNspadesDriver()
returns a matrix of conditional probabilities
Barry Zeeberg
x<-conditionalProbNspadesDriver()
x<-conditionalProbNspadesDriver()
compute cumulative probabilities from the matrix of conditional probabilities
cumulativeConditionalProbNspades()
cumulativeConditionalProbNspades()
returns no value but has side effect of printing tables of cumulative probabilities
Barry Zeeberg
x<-cumulativeConditionalProbNspades()
x<-cumulativeConditionalProbNspades()