Nothing
approximatePoints <- function(estimate, estimationPoints) {
if (is(estimate) != "PDFe") {
stop("estimate must be a PDFe class")
}
if (!is.numeric(estimationPoints)) {
stop("estimationPoints must numeric")
}
approximatePDF = approx(x = estimate$x, y = estimate$pdf,
xout = estimationPoints, yleft = 0, yright = 0)
estimate$estimationPoints = approximatePDF$x
estimate$pointsPDF = approximatePDF$y
estimate$isSpecifyPoints = TRUE
estimate$estimationLength = length(approximatePDF$x)
print(estimate)
return(invisible(approximatePDF))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.