public abstract class PointEstimate<O extends PopulationUnit> extends Estimate<GaussianDistribution>
Estimate.EstimatorType| Modifier and Type | Field and Description |
|---|---|
protected int |
nCols |
protected int |
nRows |
estimatorType, rowIndex| Modifier | Constructor and Description |
|---|---|
protected |
PointEstimate()
Basic constructor without population size.
|
protected |
PointEstimate(double populationSize)
Constructor with population size.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract PointEstimate<?> |
add(PointEstimate<?> pointEstimate) |
void |
addObservation(O obs)
This method adds an observation to the sample.
|
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
|
protected java.util.List<O> |
getObservations() |
double |
getPopulationSize() |
protected Matrix |
getQuantileForProbability(double probability) |
protected boolean |
isMergeableEstimate(Estimate<?> estimate)
This method checks if the two point estimates are compatible.
|
boolean |
isPopulationSizeKnown() |
protected abstract PointEstimate<?> |
multiply(double scalar) |
protected abstract PointEstimate<?> |
subtract(PointEstimate<?> pointEstimate) |
getDifferenceEstimate, getEstimatorType, getProductEstimate, getProductEstimate, getProductOfManyEstimates, getRandomDeviate, getRowIndex, getSumEstimate, setRowIndexgetDistribution, getMean, getVarianceprotected PointEstimate()
protected PointEstimate(double populationSize)
populationSize - the number of units in the population.public void addObservation(O obs)
obs - a PopulationUnitObservation instanceprotected boolean isMergeableEstimate(Estimate<?> estimate)
EstimateisMergeableEstimate in class Estimate<GaussianDistribution>protected java.util.List<O> getObservations()
public boolean isPopulationSizeKnown()
public double getPopulationSize()
protected Matrix getQuantileForProbability(double probability)
public ConfidenceInterval getConfidenceIntervalBounds(double oneMinusAlpha)
EstimategetConfidenceIntervalBounds in class Estimate<GaussianDistribution>oneMinusAlpha - is 1 minus the probability of Type I errorprotected abstract PointEstimate<?> add(PointEstimate<?> pointEstimate)
protected abstract PointEstimate<?> subtract(PointEstimate<?> pointEstimate)
protected abstract PointEstimate<?> multiply(double scalar)