powered by
This function calculates Laplace's Rule for a probability experiment.
laplace(x = NULL, y = NULL, learn = FALSE, interactive = FALSE)
The probability according to Laplace's Rule (for non-interactive mode)
Optional first vector (not needed for interactive mode)
Optional second vector (not needed for interactive mode)
Logical, if TRUE shows step-by-step explanation
Logical, if TRUE enables interactive practice mode
data <- 3 data2 <- c(1,2,3,4,5,6) # Simple calculation laplace(data, data2) # Learning mode laplace(data, data2, learn = TRUE) # Interactive mode if(interactive()){ laplace(interactive = TRUE) }
Run the code above in your browser using DataLab