public class MonteCarloEstimate extends Estimate<EmpiricalDistribution>
Modifier and Type | Class and Description |
---|---|
static class |
MonteCarloEstimate.MessageID |
Estimate.EstimatorType
estimatorType, rowIndex
Constructor and Description |
---|
MonteCarloEstimate()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected MonteCarloEstimate |
add(MonteCarloEstimate estimate2)
This method returns a MonteCarloEstimate instance that results from the sum of two
MonteCarloEstimate instances with the same number of realizations.
|
void |
addRealization(Matrix value)
This method adds a realization to the empirical distribution.
|
MonteCarloEstimate |
extractSubEstimate(java.util.List<java.lang.Integer> indices)
This method returns a subset of the MonteCarloEstimate.
|
ConfidenceInterval |
getConfidenceIntervalBounds(double oneMinusAlpha)
This method returns the probability of getting a lower valueand upper bound of a confidence intervals at probability
level 1 - alpha
|
Estimate<?> |
getDifferenceEstimate(Estimate<?> estimate2)
This method returns an difference estimate.
|
int |
getNumberOfRealizations()
This method returns the number of realizations the estimate is based on
|
Estimate<?> |
getProductEstimate(double scalar)
This method returns an difference estimate.
|
protected Matrix |
getQuantileForProbability(double percentile)
This method returns the percentile of the Monte Carlo simulated distribution.
|
java.util.List<Matrix> |
getRealizations()
This method returns the list of realizations in the empirical distribution.
|
Estimate<?> |
getSumEstimate(Estimate<?> estimate2)
This method returns a sum of two estimates.
|
protected boolean |
isMergeableEstimate(Estimate<?> estimate)
This method checks if the two point estimates are compatible.
|
protected MonteCarloEstimate |
multiply(double scalar)
This method returns a MonteCarloEstimate instance that results from the product of original
MonteCarloEstimate instance and a scalar.
|
protected MonteCarloEstimate |
subtract(MonteCarloEstimate estimate2)
This method returns a MonteCarloEstimate instance that results from the subtraction of two
MonteCarloEstimate instances with the same number of realizations.
|
java.lang.String |
toString() |
getEstimatorType, getProductEstimate, getProductOfManyEstimates, getRandomDeviate, getRowIndex, setRowIndex
getDistribution, getMean, getVariance
protected MonteCarloEstimate subtract(MonteCarloEstimate estimate2)
estimate2
- the estimate that is subtracted from this estimateprotected MonteCarloEstimate add(MonteCarloEstimate estimate2)
estimate2
- the estimate that is added to this estimateprotected MonteCarloEstimate multiply(double scalar)
scalar
- the multiplication factorprotected Matrix getQuantileForProbability(double percentile)
percentile
- a value between 0 and 1public MonteCarloEstimate extractSubEstimate(java.util.List<java.lang.Integer> indices)
indices
- a List of Integer that are the indices of the variates to be extracted.protected boolean isMergeableEstimate(Estimate<?> estimate)
Estimate
isMergeableEstimate
in class Estimate<EmpiricalDistribution>
public java.lang.String toString()
toString
in class java.lang.Object
public ConfidenceInterval getConfidenceIntervalBounds(double oneMinusAlpha)
Estimate
getConfidenceIntervalBounds
in class Estimate<EmpiricalDistribution>
oneMinusAlpha
- is 1 minus the probability of Type I errorpublic Estimate<?> getDifferenceEstimate(Estimate<?> estimate2)
Estimate
getDifferenceEstimate
in class Estimate<EmpiricalDistribution>
estimate2
- an Estimate to be subtracted from this estimate.public Estimate<?> getSumEstimate(Estimate<?> estimate2)
Estimate
getSumEstimate
in class Estimate<EmpiricalDistribution>
estimate2
- an Estimate to be added to this estimate.public Estimate<?> getProductEstimate(double scalar)
Estimate
getProductEstimate
in class Estimate<EmpiricalDistribution>
scalar
- a double to be multiplied by this estimatepublic void addRealization(Matrix value)
value
- a Matrixpublic java.util.List<Matrix> getRealizations()
public int getNumberOfRealizations()
NumberOfRealizationsProvider
getNumberOfRealizations
in interface NumberOfRealizationsProvider