covariance_accumulate: New function for one-pass computation of the
authorJason H Stover <jhs@math.gcsu.edu>
Wed, 15 Oct 2008 14:06:50 +0000 (10:06 -0400)
committerJason H Stover <jhs@math.gcsu.edu>
Wed, 15 Oct 2008 14:06:50 +0000 (10:06 -0400)
commitceb0823669b8cb6784fd4f793d28451e33dfd512
tree4af1bf87956e3694c1c8b0873a505bf800acb46c
parent51996c07fc2b308ad29dcbaa93e4d5d3d21b3331
covariance_accumulate: New function for one-pass computation of the
covariance matrix.

Added hash table to temporarily store the elements that will be in the
covariance matrix. The hash consists of the new data structure
covariance_accumulator. New functions hash_numeric_alpha,
covariance_accumulator_compare, match_nodes,
covariance_accumulator_free, covariance_hsh_create,
covariance_accumulator_hash, to assist with the hashing.

update_product: New function.

covariance_accumulator_to_matrix: New function to put hash elements
into the covariance matrix.

get_center: New function to center a value prior to adding it to
the covariance matrix.

covariance_matrix_insert: New function to add a value to the
covariance matrix.
src/math/covariance-matrix.c
src/math/covariance-matrix.h