.is_valid_computation_ready_delay_object | R Documentation |
Utility function that checks whether a user input is a valid computation-ready delay object. This means it can be one of the following:
a probability distribution vector: a numeric vector with no NA
or negative values, whose entries sum up to 1
a delay distribution matrix (as described in .check_is_delay_distribution_matrix
)
.is_valid_computation_ready_delay_object(
delay_object,
parameter_name,
incidence_data_length
)
delay_object |
user input object to be tested |
parameter_name |
A string containing the name the tested parameter had in the initial function in which it was passed. |
incidence_data_length |
A number representing the length of the given incidence data. |
TRUE if all tests were passed. Throws an error otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.