lisc.analysis.counts.compute_normalization

lisc.analysis.counts.compute_normalization(data, counts, dim='A')[source]

Compute a normalization of the co-occurrence data.

Parameters
data2d array

Counts of co-occurrence of terms.

counts1d array

Counts for each individual search term.

dim{‘A’, ‘B’}, optional

Which set of terms to normalize by. ‘A’ is equivalent to normalizing by rows values, ‘B’ to column values.

Returns
out2d array

The normalized co-occurrence data.

Notes

This computes a normalized data matrix as a percent of articles expressing co-occurrence.

Examples using lisc.analysis.counts.compute_normalization

Counts with Functions

Counts with Functions