| GradientDescent | R Documentation |
Estimates parameters h and J by iterative gradient updates to match
first and second moments of the observed binary data under an maximum
pairwise entropy model.
GradientDescent(data, maxit)
data |
Numeric matrix (typically 0/1). Rows are samples and columns are species or taxa. |
maxit |
Integer. Maximum number of gradient descent iterations. |
This function calls Energy() to compute energies for candidate states.
Ensure that Energy is available in the package namespace.
A list with elements:
Numeric vector of estimated implicit environmental parameters.
Numeric matrix of estimated interaction matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.