Uncertainty Metric

class stonesoup.metricgenerator.uncertaintymetric.SumofCovarianceNormsMetric[source]

Bases: _CovarianceNormsMetric

Computes the sum of the covariance matrix norms of each state at a time step. The matrix norm calculated is the Frobenius norm. The metric generator will return this value at each time step in the track(s) as a measure of the uncertainty.

compute_covariancenorms(track_states)[source]

Computes the sum of covariance norms metric for a single time step.

Parameters:

track_states (list of State) – List of states created by a filter

Returns:

metric – The sum of covariance matrix norms metric at a single time step

Return type:

SingleTimeMetric

class stonesoup.metricgenerator.uncertaintymetric.MeanofCovarianceNormsMetric[source]

Bases: _CovarianceNormsMetric

compute_covariancenorms(track_states)[source]

Computes the mean of covariance norms metric for a single time step.

Parameters:

track_states (list of State) – List of states created by a filter

Returns:

metric – The mean of covariance matrix norms metric at a single time step

Return type:

SingleTimeMetric