pub struct StddevSampFunction { /* private fields */ }Expand description
STDDEV_SAMP aggregate function (Sample Standard Deviation)
Computes the sample standard deviation of all non-NULL values. Formula: sqrt(sum((x - mean)^2) / (N - 1)) Uses Bessel’s correction (N-1 instead of N).
Trait Implementations§
Source§impl AggregateFunction for StddevSampFunction
impl AggregateFunction for StddevSampFunction
Source§fn info(&self) -> FunctionInfo
fn info(&self) -> FunctionInfo
Get function information
Source§fn accumulate(&mut self, value: &Value, distinct: bool)
fn accumulate(&mut self, value: &Value, distinct: bool)
Accumulate a value into the aggregate
Source§fn clone_box(&self) -> Box<dyn AggregateFunction>
fn clone_box(&self) -> Box<dyn AggregateFunction>
Clone the function into a new instance
Source§fn configure(&mut self, _options: &[Value])
fn configure(&mut self, _options: &[Value])
Configure the function with additional arguments Read more
Source§fn set_order_by(&mut self, _directions: Vec<bool>)
fn set_order_by(&mut self, _directions: Vec<bool>)
Configure ORDER BY for ordered-set aggregates like ARRAY_AGG, STRING_AGG Read more
Source§fn accumulate_with_sort_key(
&mut self,
value: &Value,
sort_keys: Vec<Value>,
distinct: bool,
)
fn accumulate_with_sort_key( &mut self, value: &Value, sort_keys: Vec<Value>, distinct: bool, )
Accumulate a value with sort keys for ordered aggregates Read more
Source§fn supports_order_by(&self) -> bool
fn supports_order_by(&self) -> bool
Check if this aggregate supports ORDER BY clause Read more
Source§impl Default for StddevSampFunction
impl Default for StddevSampFunction
Source§fn default() -> StddevSampFunction
fn default() -> StddevSampFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StddevSampFunction
impl RefUnwindSafe for StddevSampFunction
impl Send for StddevSampFunction
impl Sync for StddevSampFunction
impl Unpin for StddevSampFunction
impl UnwindSafe for StddevSampFunction
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> 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