coef.motbf | R Documentation |
Extracts the parameters of the learned mixtures of truncated basis functions.
## S3 method for class 'motbf' coef(object, ...)
object |
An object of class |
... |
other arguments. |
A numeric vector with the parameters of the function.
univMoTBF, coeffMOP and coeffMTE
## Data X <- rchisq(2000, df = 5) ## Learning f1 <- univMoTBF(X, POTENTIAL_TYPE = "MOP"); f1 ## Coefficients coef(f1) ## Learning f2 <- univMoTBF(X, POTENTIAL_TYPE = "MTE", maxParam = 10); f2 ## Coefficients coef(f2) ## Learning f3 <- univMoTBF(X, POTENTIAL_TYPE = "MOP", nparam=10); f3 ## Coefficients coef(f3) ## Plots plot(NULL, xlim = range(X), ylim = c(0,0.2), xlab="X", ylab="density") plot(f1, xlim = range(X), col = 1, add = TRUE) plot(f2, xlim = range(X), col = 2, add = TRUE) plot(f3, xlim = range(X), col = 3, add = TRUE) hist(X, prob = TRUE, add= TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.