beast2
beast2 copied to clipboard
It would be nice to have a simple way of telling if a Parameter is being estimated or not
Right now there is no (single-liner) way of checking if a Parameter is being estimated or not.
A default method in Parameter like:
default boolean isEstimated() {
// loop through outputs finding operators
// loop through operators and check if any of them are acting on this Parameter
// return true if any of them are, else false
}
would be nice.
From what @rbouckaert says it seems like this would need to loop through the operators in the outputs of the Parameter (and possibly go through the operator schedule(s) to find more operators) and then check if any of those operators were operating on the given Parameter.