Description Usage Arguments Value Author(s) See Also Examples
Returns a matrix C that can be used to specify linear constraints C*b >= 0 to impose unimodality with mode at the m-th element on a numeric vector b of length p.
1 | unimat(p, m)
|
p |
Integer (>=2) giving the length of the vector b. |
m |
Location of the mode within the vector b. Should be in integer between 1 and p. |
Matrix C with coefficients for the linear constraints.
Claudia Koellmann
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.