Hypothesis

class ssapy.correlate_tracks.Hypothesis(tracks, nsat=1000)[source][source]

Bases: object

Assignment of detections to multiple tracks.

This class represents an assignment of detections to multiple tracks. The goal of Multiple Hypothesis Tracking to to find the Hypothesis (track assignment) that has the highest likelihood.

Parameters:

tracks (list of Tracks) – The tracks in the hypothesis. Each track must correspond to different observations, and all observations under consideration must be accounted for

tracks[source]

the tracks in this hypothesis

Type:

list

lnprob[source]

the log probability of this hypothesis

Type:

float

nsat[source]

the total number of satellites in the sky that could be observed

Type:

int

Methods Summary

addto(hypothesis, track[, oldtrack])

Add a new track to a Hypothesis.

difference(hypothesis)

Print the difference between two hypotheses.

ntracklet()

Number of observations in tracks in the hypothesis.

summarize([verbose])

Summarize the Hypothesis as a string.

Methods Documentation

static addto(hypothesis, track, oldtrack=None, **kw)[source][source]

Add a new track to a Hypothesis.

Parameters:
  • hypothesis (Hypothesis) – hypothesis to which to add

  • track (Track) – track to add to hypothesis

  • oldtrack (Track) – track to remove from hypothesis, if the new track updates the old track.

Returns:

  • new Hypothesis, with track added, replacing oldtrack if oldtrack is

  • not None.

difference(hypothesis)[source][source]

Print the difference between two hypotheses.

Often two hypotheses are very similar. This makes it easier to inspect only the differences between them.

Parameters:

hypothesis (Hypothesis) – hypothesis to which to compare this hypothesis

ntracklet()[source][source]

Number of observations in tracks in the hypothesis.

summarize(verbose=False)[source][source]

Summarize the Hypothesis as a string.

Parameters:

verbose (bool) – Include information about each track in the hypothesis.

Return type:

A string summarizing the hypothesis.