Package 'conditionalProbNspades'

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

Help Index


conditionalProbNspades

Description

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

Usage

conditionalProbNspades(N)

Arguments

N

N is the number of spades in my hand

Value

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

Author(s)

Barry Zeeberg

Examples

x<-conditionalProbNspades(4)

conditionalProbNspadesDriver

Description

driver to invoke conditionalProbNspades

Usage

conditionalProbNspadesDriver()

Value

returns a matrix of conditional probabilities

Author(s)

Barry Zeeberg

Examples

x<-conditionalProbNspadesDriver()

cumulativeConditionalProbNspades

Description

compute cumulative probabilities from the matrix of conditional probabilities

Usage

cumulativeConditionalProbNspades()

Value

returns no value but has side effect of printing tables of cumulative probabilities

Author(s)

Barry Zeeberg

Examples

x<-cumulativeConditionalProbNspades()