public sealed class BernoulliDistribution : ProbabilityDistributionPublic NotInheritable Class BernoulliDistribution
Inherits ProbabilityDistributionpublic ref class BernoulliDistribution sealed : public ProbabilityDistribution[<SealedAttribute>]
type BernoulliDistribution =
class
inherit ProbabilityDistribution
end
A BernoulliDistribution instance acts for
the probability distribution of a random variable which
takes value 1 with a probability equal to
and value 0
with probability
,
for
.
Method Pdf(Double) thus implements a
probability function satisfying:
Parameter can be get or set
via property SuccessProbability.
| BernoulliDistribution | Initializes a new instance of the BernoulliDistribution class having the specified success probability. |
| CanInvertCdf |
Gets a value indicating whether this instance can invert its
cumulative distribution function.
(Overrides ProbabilityDistributionCanInvertCdf) |
| RandomNumberGenerator |
Gets or sets the basic random generator for this instance.
(Inherited from RandomDevice) |
| SuccessProbability | Gets or sets the success probability of this instance. |
| Balanced | Creates a Bernoulli distribution having success probability equal to 1/2. |
| Cdf(Double) |
Computes the cumulative distribution function
of this instance at the specified argument.
(Overrides ProbabilityDistributionCdf(Double)) |
| Cdf(DoubleMatrix) |
Computes the cumulative distribution function
of this instance at the specified arguments.
(Inherited from ProbabilityDistribution) |
| Cdf(ReadOnlyDoubleMatrix) |
Computes the cumulative distribution function
of this instance at the specified arguments.
(Inherited from ProbabilityDistribution) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| InverseCdf(Double) |
Throws a NotSupportedException.
(Overrides ProbabilityDistributionInverseCdf(Double)) |
| InverseCdf(DoubleMatrix) |
Throws a NotSupportedException.
(Overrides ProbabilityDistributionInverseCdf(DoubleMatrix)) |
| InverseCdf(ReadOnlyDoubleMatrix) |
Computes the inverse of the cumulative distribution function
of this instance at the specified arguments.
(Inherited from ProbabilityDistribution) |
| Mean |
Computes the mean of this instance.
(Overrides ProbabilityDistributionMean) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| OnSample |
Called when drawing a sample from this instance having the given size
and returns it
in a given destination array.
(Overrides ProbabilityDistributionOnSample(Int32, Double, Int32)) |
| Pdf(Double) |
Computes the probability density function
of this instance at the specified argument.
(Overrides ProbabilityDistributionPdf(Double)) |
| Pdf(DoubleMatrix) |
Computes the probability density function
of this instance at the specified arguments.
(Inherited from ProbabilityDistribution) |
| Pdf(ReadOnlyDoubleMatrix) |
Computes the probability density function
of this instance at the specified arguments.
(Inherited from ProbabilityDistribution) |
| Sample |
Draws a sample point from this instance.
(Overrides ProbabilityDistributionSample) |
| Sample(Int32) |
Draws a sample from this instance having the specified size
and returns it as a matrix.
(Inherited from ProbabilityDistribution) |
| Sample(Int32, Double, Int32) |
Draws a sample from this instance having the specified size
and returns it
in a destination array.
(Inherited from ProbabilityDistribution) |
| StandardDeviation |
Computes the standard deviation of this instance.
(Inherited from ProbabilityDistribution) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Variance |
Computes the variance of this instance.
(Overrides ProbabilityDistributionVariance) |