seasonder_validateCalibrationMatrixSeaSondeRAPM | R Documentation |
This function validates the input calibration_matrix to ensure it meets the required specifications for use in a SeaSondeRAPM object.
seasonder_validateCalibrationMatrixSeaSondeRAPM(matrix)
matrix |
A 3 x b complex matrix for calibration, where b is the number of bearings. |
The function performs the following validation checks:
Confirms that the input is a matrix.
Verifies that the matrix has exactly three rows.
Checks that the matrix contains only complex numbers.
If any of these validation steps fail, the function will log a fatal error and stop the execution using rlang::abort
.
TRUE if the matrix is valid. The function will stop execution and display an error message if the matrix is invalid.
seasonder_createSeaSondeRAPM
valid <- seasonder_validateCalibrationMatrixSeaSondeRAPM(
matrix(complex(real = 1, imaginary = 0), nrow = 3, ncol = 5)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.