[−][src]Trait basic_dsp::SumOps
Offers operations to calculate the sum or the sum of squares.
Required methods
fn sum(&self) -> T
Calculates the sum of the data contained in the vector.
Example
use basic_dsp_vector::*; let vector = vec!(1.0, 2.0, 3.0, 4.0, 5.0, 6.0).to_complex_time_vec(); let result = vector.sum(); assert_eq!(result, Complex32::new(9.0, 12.0)); }
fn sum_sq(&self) -> T
Calculates the sum of the squared data contained in the vector.
Example
use basic_dsp_vector::*; let vector = vec!(1.0, 2.0, 3.0, 4.0, 5.0, 6.0).to_complex_time_vec(); let result = vector.sum_sq(); assert_eq!(result, Complex64::new(-21.0, 88.0)); }
Implementors
impl<S, T, N, D> SumOps<Complex<T>> for DspVec<S, T, N, D> where
D: Domain,
N: ComplexNumberSpace,
S: ToSlice<T>,
T: RealNumber,
[src]
impl<S, T, N, D> SumOps<Complex<T>> for DspVec<S, T, N, D> where
D: Domain,
N: ComplexNumberSpace,
S: ToSlice<T>,
T: RealNumber,
impl<S, T, N, D> SumOps<T> for DspVec<S, T, N, D> where
D: Domain,
N: RealNumberSpace,
S: ToSlice<T>,
T: RealNumber,
[src]
impl<S, T, N, D> SumOps<T> for DspVec<S, T, N, D> where
D: Domain,
N: RealNumberSpace,
S: ToSlice<T>,
T: RealNumber,
impl<S, V, T> SumOps<[T; 2]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
[src]
impl<S, V, T> SumOps<[T; 2]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
impl<S, V, T> SumOps<[T; 3]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
[src]
impl<S, V, T> SumOps<[T; 3]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
impl<S, V, T> SumOps<[T; 4]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
[src]
impl<S, V, T> SumOps<[T; 4]> for Matrix2xN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
impl<S, V, T> SumOps<Vec<T>> for MatrixMxN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,
[src]
impl<S, V, T> SumOps<Vec<T>> for MatrixMxN<V, S, T> where
S: ToSlice<T>,
T: RealNumber,
V: Vector<T> + SumOps<T>,