R/coef.tropsvm.R

Defines functions coef.tropsvm

Documented in coef.tropsvm

#' Extract Optimal Tropical Hyperplane from a tropsvm object
#'
#' Obtain the optimal tropical hyperplane in the form of vectors from a tropsvm object.
#'
#' @param object a fitted \code{"tropsvm"} object.
#' @param \dots Not used. Other arguments.
#'
#' @return An output of the apex of the fitted optimal tropical hyperplane.
#' @method coef tropsvm
#' @export
#' @export coef.tropsvm
coef.tropsvm <- function(object, ...) {
  cat("The apex of seprarating hyperplane is: \n", -object$apex, "\n")
}

Try the Rtropical package in your browser

Any scripts or data that you put into this service are public.

Rtropical documentation built on Nov. 10, 2021, 1:07 a.m.