Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nsimplex

Computes the number of points on a (p, n)-simplex lattice


Description

Computes the number of points on a (p, n)-simplex lattice; that is, the number of p-part compositions of n. This gives the number of points in the support space of a Multinomial(n, q) distribution, where p == length(q).

Arguments p and n are replicated as necessary to have the length of the longer of them.

Usage

nsimplex(p, n)

Arguments

p

vector of integers

n

vector of integers

Value

integer

Examples

nsimplex(3,5)

combinat

combinatorics utilities

v0.0-8
GPL-2
Authors
Scott Chasalow
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.