Description Usage Arguments Details Value See Also Examples
Fit wave function coefficients from a sample
1 | wavefunction_fit(x, degree)
|
x |
a sample from a distribution on the reals |
degree |
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
low degree
if the sample is standardized to have mean zero and
variance one-half. There are diminishing returns to degree
greater
than 20 or so due to floating point limitations.
a numeric vector of coefficients of length degree+1
Madeleine B. Thompson, “Wave function representation of probability distributions,” 2017, https://arxiv.org/abs/1712.07764.
1 2 | x <- rt(100, df = 5)
w <- wavefunction_fit(x, degree = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.