pub struct BernoulliDistribution { /* private fields */ }
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 copy of the value. Read more
1.0.0 · 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
impl StructuralPartialEq for BernoulliDistribution
Auto Trait Implementations§
impl Freeze for BernoulliDistribution
impl !RefUnwindSafe for BernoulliDistribution
impl Send for BernoulliDistribution
impl Sync for BernoulliDistribution
impl Unpin for BernoulliDistribution
impl !UnwindSafe 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