scalation.simulation.monte_carlo
Members list
Type members
Classlikes
The Cards
class is used to represent a deck of playing cards.
The Cards
class is used to represent a deck of playing cards.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The Cards
companion object provides function that operate on cards and hands.
The Cards
companion object provides function that operate on cards and hands.
Attributes
The GrainDropping
class may be used for rough estimates of pi by using Monte Carlo Simulation.
The GrainDropping
class may be used for rough estimates of pi by using Monte Carlo Simulation.
Value parameters
- stream
-
the random number stream to use
Attributes
- See also
-
also Buffon Needle Experiment
- Supertypes
-
class Objecttrait Matchableclass Any
The MonteCarloIntegration
uses Monte Carlo sampling to approximate the integral of f(x) over the domain [a, b].
The MonteCarloIntegration
uses Monte Carlo sampling to approximate the integral of f(x) over the domain [a, b].
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
The RollDice
class is used to represent a deck of playing cards.
The RollDice
class is used to represent a deck of playing cards.
Value parameters
- nDice
-
the number of dice to roll for one sample
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
The RollDice
object provides formulas for the coefficients (number of ways) to roll a certain number.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
The cardsTest
main function is used to test the Cards
class.
The cardsTest
main function is used to test the Cards
class.
runMain scalation.simulation.monte_carlo.cardsTest
Attributes
The cardsTest2
main function is used to test the Cards
class. Classification of Poker Hands.
The cardsTest2
main function is used to test the Cards
class. Classification of Poker Hands.
runMain scalation.simulation.monte_carlo.cardsTest2
Attributes
The cardsTest3
main function is used to test the Cards
class. Monte Carlo simulation to estimate probabilities of Poker Hands.
The cardsTest3
main function is used to test the Cards
class. Monte Carlo simulation to estimate probabilities of Poker Hands.
runMain scalation.simulation.monte_carlo.cardsTest3
Attributes
The grainDroppingTest
main function is used to test the GrainDropping
class.
The grainDroppingTest
main function is used to test the GrainDropping
class.
runMain scalation.simulation.monte_carlo.grainDroppingTest
Attributes
The MonteCarloIntegrationTest
object provides a simple example of Monte Carlo Integration. This example provides a slow converging way to compute pi. The area of circle with radius one is pi.
The MonteCarloIntegrationTest
object provides a simple example of Monte Carlo Integration. This example provides a slow converging way to compute pi. The area of circle with radius one is pi.
runMain scalation.simulation.monte_carlo.monteCarloIntegrationTest
Attributes
The MontyHall
main function is used to test whether staying or switching picks when selecting a prize behind one of three doors in "Let's Make a Deal" is the better strategy.
The MontyHall
main function is used to test whether staying or switching picks when selecting a prize behind one of three doors in "Let's Make a Deal" is the better strategy.
Attributes
- See also
-
en.wikipedia.org/wiki/Monty_Hall_problem
runMain scalation.simulation.monte_carlo.montyHall
The rollDiceTest
main function is used to test the RollDice
class.
The rollDiceTest
main function is used to test the RollDice
class.
runMain scalation.simulation.monte_carlo.rollDiceTest
Attributes
The rollDiceTest2
main function computes the number of ways to get a sum of s using n_d = 1, 2, 3, 4 dice.
The rollDiceTest2
main function computes the number of ways to get a sum of s using n_d = 1, 2, 3, 4 dice.
runMain scalation.simulation.monte_carlo.rollDiceTest2
Attributes
The sphereVolumeTest
main function provides a simple example of Monte Carlo estimation of the volume of a unit sphere.
The sphereVolumeTest
main function provides a simple example of Monte Carlo estimation of the volume of a unit sphere.
runMain scalation.simulation.monte_carlo.sphereVolumeTest