public final class BootstrapHybridPointEstimate extends Estimate<UnknownDistribution> implements NumberOfRealizationsProvider
Modifier and Type | Class and Description |
---|---|
class |
BootstrapHybridPointEstimate.VariancePointEstimate |
Estimate.EstimatorType
estimatorType, rowIndex
Constructor and Description |
---|
BootstrapHybridPointEstimate() |
Modifier and Type | Method and Description |
---|---|
protected BootstrapHybridPointEstimate |
add(BootstrapHybridPointEstimate estimate2)
This method returns a MonteCarloEstimate instance that results from the sum of two
MonteCarloEstimate instances with the same number of realizations.
|
void |
addBootstrapHybridEstimate(BootstrapHybridPointEstimate estimate)
This method is useful for large simulations.
|
void |
addPointEstimate(PointEstimate<?> estimate)
This method adds a realization of the point estimate.
|
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.
|
Matrix |
getMean()
This method returns the estimate of the total, which is the mean of the
realized point estimates.
|
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 probability) |
int |
getSampleSize()
Returns the sample size the individual point estimates are based on or -1 if
no point estimate is available at the moment.
|
Estimate<?> |
getSumEstimate(Estimate<?> estimate2)
This method returns a sum of two estimates.
|
BootstrapHybridPointEstimate.VariancePointEstimate |
getUncorrectedVariance()
This method returns the uncorrected variance of the total estimate.
|
Matrix |
getVariance()
This method returns the second central moment, i.e.
|
BootstrapHybridPointEstimate.VariancePointEstimate |
getVarianceOfTotalEstimate()
This method returns the corrected variance of the total estimate.
|
protected boolean |
isMergeableEstimate(Estimate<?> estimate)
This method checks if the two point estimates are compatible.
|
protected BootstrapHybridPointEstimate |
multiply(double scalar)
This method returns a MonteCarloEstimate instance that results from the product of original
MonteCarloEstimate instance and a scalar.
|
protected BootstrapHybridPointEstimate |
subtract(BootstrapHybridPointEstimate estimate2)
This method returns a MonteCarloEstimate instance that results from the subtraction of two
MonteCarloEstimate instances with the same number of realizations.
|
getEstimatorType, getProductEstimate, getProductOfManyEstimates, getRandomDeviate, getRowIndex, setRowIndex
getDistribution
public void addPointEstimate(PointEstimate<?> estimate)
estimate
- a PointEstimate instanceprotected boolean isMergeableEstimate(Estimate<?> estimate)
Estimate
isMergeableEstimate
in class Estimate<UnknownDistribution>
public void addBootstrapHybridEstimate(BootstrapHybridPointEstimate estimate)
estimate
- a BootstrapHybridPointEstimate instance that relies on the same PointEstimate class in the estimates memberpublic Matrix getMean()
getMean
in interface CentralMomentsGettable
getMean
in class RandomVariable<UnknownDistribution>
public final BootstrapHybridPointEstimate.VariancePointEstimate getUncorrectedVariance()
public final BootstrapHybridPointEstimate.VariancePointEstimate getVarianceOfTotalEstimate()
public Matrix getVariance()
CentralMomentsGettable
getVariance
in interface CentralMomentsGettable
getVariance
in class RandomVariable<UnknownDistribution>
public int getNumberOfRealizations()
NumberOfRealizationsProvider
getNumberOfRealizations
in interface NumberOfRealizationsProvider
protected Matrix getQuantileForProbability(double probability)
public ConfidenceInterval getConfidenceIntervalBounds(double oneMinusAlpha)
Estimate
getConfidenceIntervalBounds
in class Estimate<UnknownDistribution>
oneMinusAlpha
- is 1 minus the probability of Type I errorpublic int getSampleSize()
protected BootstrapHybridPointEstimate subtract(BootstrapHybridPointEstimate estimate2)
estimate2
- the estimate that is subtracted from this estimateprotected BootstrapHybridPointEstimate add(BootstrapHybridPointEstimate estimate2)
estimate2
- the estimate that is added to this estimateprotected BootstrapHybridPointEstimate multiply(double scalar)
scalar
- the multiplication factorpublic Estimate<?> getDifferenceEstimate(Estimate<?> estimate2)
Estimate
getDifferenceEstimate
in class Estimate<UnknownDistribution>
estimate2
- an Estimate to be subtracted from this estimate.public Estimate<?> getSumEstimate(Estimate<?> estimate2)
Estimate
getSumEstimate
in class Estimate<UnknownDistribution>
estimate2
- an Estimate to be added to this estimate.public Estimate<?> getProductEstimate(double scalar)
Estimate
getProductEstimate
in class Estimate<UnknownDistribution>
scalar
- a double to be multiplied by this estimate