Fit wave function coefficients from a sample
a sample from a distribution on the reals
the Hermite polynomial degree to fit
Fits a Hermite wave function density of degree
degree. The values will
maximize the likelihood under the density specified under
dwavefunction. A more accurate representation is obtained for a
degree if the sample is standardized to have mean zero and
variance one-half. There are diminishing returns to
than 20 or so due to floating point limitations.
a numeric vector of coefficients of length
Madeleine B. Thompson, “Wave function representation of probability distributions,” 2017, https://arxiv.org/abs/1712.07764.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.