pub struct BernoulliDistribution { /* private fields */ }๐Deprecated since 54.0.0:
Part of the unused Statistics V2 framework; see https://github.com/apache/datafusion/pull/22071
Expand description
Bernoulli distribution with success probability p. If p has a null value,
the success probability is unknown. For a more in-depth discussion, see:
Implementationsยง
Sourceยงimpl BernoulliDistribution
impl BernoulliDistribution
pub fn data_type(&self) -> DataType
pub fn p_value(&self) -> &ScalarValue
pub fn mean(&self) -> &ScalarValue
Sourcepub fn median(&self) -> Result<ScalarValue, DataFusionError>
pub fn median(&self) -> Result<ScalarValue, DataFusionError>
Computes the median value of this distribution. In case of an unknown
success probability, the function returns a NULL ScalarValue.
Sourcepub fn variance(&self) -> Result<ScalarValue, DataFusionError>
pub fn variance(&self) -> Result<ScalarValue, DataFusionError>
Computes the variance value of this distribution. In case of an unknown
success probability, the function returns a NULL ScalarValue.
pub fn range(&self) -> Interval
Trait Implementationsยง
Sourceยงimpl Clone for BernoulliDistribution
impl Clone for BernoulliDistribution
Sourceยงfn clone(&self) -> BernoulliDistribution
fn clone(&self) -> BernoulliDistribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for BernoulliDistribution
impl Debug for BernoulliDistribution
Sourceยงimpl PartialEq for BernoulliDistribution
impl PartialEq for BernoulliDistribution
Sourceยงfn eq(&self, other: &BernoulliDistribution) -> bool
fn eq(&self, other: &BernoulliDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BernoulliDistribution
Auto Trait Implementationsยง
impl !RefUnwindSafe for BernoulliDistribution
impl !UnwindSafe for BernoulliDistribution
impl Freeze for BernoulliDistribution
impl Send for BernoulliDistribution
impl Sync for BernoulliDistribution
impl Unpin for BernoulliDistribution
impl UnsafeUnpin for BernoulliDistribution
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more