File: nsimplex.Rd

package info (click to toggle)
r-cran-combinat 0.0-8-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 164 kB
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\name{nsimplex}
\alias{nsimplex}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{ 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)
}
%- maybe also `usage' for other objects documented here.
\arguments{
  \item{p}{ vector of integers }
  \item{n}{ vector of integers }
}
%\details{
%}
\value{
integer
}
\examples{
nsimplex(3,5)
}
\keyword{ models }