function – using argmax or something simpler in R

function – using argmax or something simpler in R

Like this:

inputs     <- list(g, g2)
outputs    <- sapply(inputs, mp)
best.input <- inputs[which.max(outputs)]

function – using argmax or something simpler in R

Leave a Reply

Your email address will not be published.