pub trait AggregateOps {
// Required methods
fn avg(&self) -> f64;
fn length(&self) -> f64;
fn square(&self) -> Result<NDArray<f64>, String>;
fn sum(&self) -> Result<NDArray<f64>, String>;
fn abs(&self) -> Result<NDArray<f64>, String>;
fn sort(&self) -> Vec<f64>;
fn unique(&self) -> Vec<f64>;
fn mean(&self, axis: usize) -> Result<Vec<f64>, String>;
fn stdev(&self, axis: usize) -> Result<Vec<f64>, String>;
fn stdev_sample(&self, axis: usize) -> Result<Vec<f64>, String>;
}Required Methods§
fn avg(&self) -> f64
fn length(&self) -> f64
fn square(&self) -> Result<NDArray<f64>, String>
fn sum(&self) -> Result<NDArray<f64>, String>
fn abs(&self) -> Result<NDArray<f64>, String>
fn sort(&self) -> Vec<f64>
fn unique(&self) -> Vec<f64>
fn mean(&self, axis: usize) -> Result<Vec<f64>, String>
fn stdev(&self, axis: usize) -> Result<Vec<f64>, String>
fn stdev_sample(&self, axis: usize) -> Result<Vec<f64>, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".