pub struct UniformDistribution { /* private fields */ }
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 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 UniformDistribution
impl Debug for UniformDistribution
Source§impl PartialEq for UniformDistribution
impl PartialEq for UniformDistribution
impl StructuralPartialEq for UniformDistribution
Auto Trait Implementations§
impl Freeze for UniformDistribution
impl !RefUnwindSafe for UniformDistribution
impl Send for UniformDistribution
impl Sync for UniformDistribution
impl Unpin for UniformDistribution
impl !UnwindSafe for UniformDistribution
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