View source: R/target_assignment_window.R
target_assignment.window | R Documentation |
This function IS NOT intended to be called by the user. The user is supposed to call target_assignment(method = 'windowSquare') to access this function.
This function assigns every sensor point to a single target using the square window method, which averages the errors of nearby points. For each point, this function keeps all points belonging to the same track within the given time window. For example, for the point in track 3 at time t = 60 and windowsize = 20, this function averages the location error, downrange error, bearing error, and altitude error for all points belonging to track 3 that were recorded between time 50 and time 70. It then assigns each point to the closest target (minimum of locationError) while the rest are discarded.
A sensor point is then determined to be a false track (isFalseTrack = TRUE) if one of several possible cutoffs is exceeded. See get_isFalseTrack
for details.
This function is not intended to be used as a stand-alone function, but rather as a part of the call to target_assignment
.
target_assignment.window(
targetTrackDistance,
cutoff,
windowSize,
parallel = FALSE
)
targetTrackDistance |
the output of target_track_distance() |
cutoff |
numeric vector of length 1, 2, or 3 specifying the conditions under which a point is determined to be a false track. The different lengths imply different cutoff conditions:
|
windowSize |
size of the time window to be averaged over (in same units as original sensorData input, likely POSIX). At time t, all points between t - windowSize/2 and t + windowSize/2 are kept. |
parallel |
when TRUE, will run target assignment on multiple cores |
A data frame with the same number of observations as the sensor data that was originally passed to target_track_distance(). Each sensor point in the original data set has been assigned to a target using the method specified by the user, and the output data provides the following summary statistics:
lonError: difference in longitude between the sensor point and assigned target at the time of the sensor point
latError: difference in latitude between the sensor point and assigned target at the time of the sensor point
altError: difference in altitude between the sensor point and assigned target at the time of the sensor point
bearingToTarget: bearing (azimuth) to target from ownship at the time of the sensor point
trackNum: the track number associated with this sensor data point
tgtAssigned: the ID of the target assigned to this sensor point
locationError: distance between sensor point and target at the given time
pointIndex: index referring to which of the original sensor data points this target-track pair refers. Necessary for comparisons in target_assignment()
time: the time that this sensor point was recorded
bearingError: difference in bearing between the sensor point and target at the time of the sensor point
downrangeError: difference in range to ownship between the sensor point and target
lon: longitude of the sensor point
lat: latitude of the sensor point
alt: altitude of the sensor point
rangeToShip: range from target to ownship at the time of the sensor data point
targetAspect: target aspect (as seen from ownship) at the time of the sensor data point
meanLocationError: (only in square and gauss window methods) mean distance between sensor point and target for all of the points included in the window
isFalseTrack: boolean indicating whether a point is outside the cutoff and therefore considered a false track
tgtXtrack: factor expressing the truthID.trackNum interaction
segmentNumber: an integer counting the number of times during which a single track is assigned to a particular target
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.