View source: R/SeaSondeRCS_MUSIC.R
seasonder_MUSICExtractPeaksCheckRetainedSolution | R Documentation |
This function verifies and adjusts the retained solution type ("single" or "dual") based on the Direction of Arrival (DOA) solutions extracted using the MUSIC algorithm.
seasonder_MUSICExtractPeaksCheckRetainedSolution(ret_sol, DOA_sol)
ret_sol |
A character string specifying the initial solution type to retain. Valid values are |
DOA_sol |
A list containing extracted DOA solutions, as returned by |
The function performs the following checks:
If the retained solution is "dual" but no valid dual solution bearings exist, it defaults to "single" if valid.
If the retained solution is "single" but no valid single solution bearings exist, it defaults to "none".
This validation ensures the output solutions are consistent with the detected peaks, addressing potential discrepancies in the initial assumptions about the solution type.
A character string indicating the validated solution type:
"single"
: If only one single solution bearing is valid.
"dual"
: If valid dual solution bearings are detected.
"none"
: If no valid bearings are found.
seasonder_MUSICExtractPeaks
, seasonder_MUSICExtractDOASolutions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.