Computes the energy for SiMLR based on the specified energy type, with partial matching for energy_type. Returns negative values for maximization objectives to align with minimization goals.

calculate_simlr_energy(
  V,
  X,
  U,
  energy_type,
  lambda = 1,
  prior_matrix = NULL,
  verbose = 0
)

Arguments

V

Matrix V in the SiMLR decomposition.

X

Data matrix for the modality.

U

Matrix U in the SiMLR decomposition.

energy_type

Character string specifying the energy type. Supports partial matching (e.g., "reg" for "regression", "cca" for "cca" or "acc"). Valid options: regression, reconorm, lowRankRegression, lrr, cca, acc, logcosh, kurtosis, exp, gauss, normalized_correlation, dat.

lambda

Numeric, weight for domain energy (default = 1.0).

prior_matrix

Optional prior matrix for domain energy (used with "dat").

verbose

Integer, verbosity level: 0 (none), 1 (log matched energy_type) (default = 0).

Value

Numeric energy value (negative for maximization objectives).