pub struct UniformDistribution { /* private fields */ }๐Deprecated since 54.0.0:
Part of the unused Statistics V2 framework; see https://github.com/apache/datafusion/pull/22071
Expand description
Uniform distribution, represented by its range. If the given range extends towards infinity, the distribution will be improper โ which is OK. For a more in-depth discussion, see:
https://en.wikipedia.org/wiki/Continuous_uniform_distribution https://en.wikipedia.org/wiki/Prior_probability#Improper_priors
Implementationsยง
Sourceยงimpl UniformDistribution
impl UniformDistribution
pub fn data_type(&self) -> DataType
Sourcepub fn mean(&self) -> Result<ScalarValue, DataFusionError>
pub fn mean(&self) -> Result<ScalarValue, DataFusionError>
Computes the mean value of this distribution. In case of improper
distributions (i.e. when the range is unbounded), the function returns
a NULL ScalarValue.
pub fn median(&self) -> Result<ScalarValue, DataFusionError>
Sourcepub fn variance(&self) -> Result<ScalarValue, DataFusionError>
pub fn variance(&self) -> Result<ScalarValue, DataFusionError>
Computes the variance value of this distribution. In case of improper
distributions (i.e. when the range is unbounded), the function returns
a NULL ScalarValue.
pub fn range(&self) -> &Interval
Trait Implementationsยง
Sourceยงimpl Clone for UniformDistribution
impl Clone for UniformDistribution
Sourceยงfn clone(&self) -> UniformDistribution
fn clone(&self) -> UniformDistribution
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 UniformDistribution
impl Debug for UniformDistribution
Sourceยงimpl PartialEq for UniformDistribution
impl PartialEq for UniformDistribution
Sourceยงfn eq(&self, other: &UniformDistribution) -> bool
fn eq(&self, other: &UniformDistribution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UniformDistribution
Auto Trait Implementationsยง
impl !RefUnwindSafe for UniformDistribution
impl !UnwindSafe for UniformDistribution
impl Freeze for UniformDistribution
impl Send for UniformDistribution
impl Sync for UniformDistribution
impl Unpin for UniformDistribution
impl UnsafeUnpin for UniformDistribution
Blanket Implementationsยง
Sourceยงimpl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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