Learn R Programming

scanstatistics (version 1.0.1)

gaussian_score: Compute the Gaussian score for each priority subset, for each duration.

Description

Compute the Gaussian score for each priority subset, for each duration.

Usage

gaussian_score(counts, baselines, variances, priority_indices)

Arguments

counts

A matrix of observed counts. Rows represent timepoints, ordered from most recent to most distant. Columns represent e.g. locations or data streams.

baselines

A matrix of expected counts with the same dimensions as counts.

variances

A matrix of variances with the same dimensions as counts.

priority_indices

A matrix of the same size as the input. On each row (duration), column numbers are given in order of priority.

Value

A matrix of the same dimension as the input matrices.