public static UnequalProbabilityRandomSampling FromInclusionProbabilities(
DoubleMatrix inclusionProbabilities
)
Public Shared Function FromInclusionProbabilities (
inclusionProbabilities As DoubleMatrix
) As UnequalProbabilityRandomSampling
public:
static UnequalProbabilityRandomSampling^ FromInclusionProbabilities(
DoubleMatrix^ inclusionProbabilities
)
static member FromInclusionProbabilities :
inclusionProbabilities : DoubleMatrix -> UnequalProbabilityRandomSampling
Method FromInclusionProbabilities(DoubleMatrix) creates UnequalProbabilityRandomSampling instances by specifying, for each population unit, its probability of being included in a sample. In this case, the sample size is defined as the sum of such probabilities.
ArgumentNullException | inclusionProbabilities is null. |
ArgumentException | inclusionProbabilities has
Count equal to 1. -or- inclusionProbabilities contains entries whose sum differs from an integer more than .001 in absolute value. |
ArgumentOutOfRangeException | inclusionProbabilities contains at least an entry not belonging to the open interval ]0, 1[. |