Computes the smallest lambda such that P=0.

Here, `Sig[j,k] = 0`

if `|j-k|>K`

and `Sig[j,k] = 1 - |j-k| / K`

otherwise.

1 | ```
ma(p, K)
``` |

`p` |
dimension of covariance matrix |

`K` |
moving-average bandwidth |

Returns the covariance matrix, `Sig`

, and the symmetric
square root, `A`

, of this matrix.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.