Module oozie::sparse [] [src]

Module with some functions that implement basic algebraic operations between sparse vectors. Here a sparse vector is just a HashMap<usize, f64>

Functions

covariance

Computes the covariance between two sparse vectors. It treats the vectors as discrete uniform random variables.

dot

Computes the dot product between two sparse vectors.

norm

Computes the norm of an sparse vector.