Learn R Programming

gdm (version 1.6.0-2)

calculate.gdm.deviance: Calculate GDM Deviance for Observed & Predicted Dissimilarities

Description

Calculate GDM deviance for observed & predicted dissimilarities. Can be used for assessing cross-validation data. Translated from the c++ function CalcGDMDevianceDouble() in the file NNLS_Double.cpp from the GDM R package.

Usage

calculate.gdm.deviance(predDiss, obsDiss)

Value

A single value (float) being the deviance.

Arguments

predDiss

(float) A vector of predicted dissimilarity values, of same length as obsDiss.

obsDiss

(float) A vector of observed dissimilarity values, of same length as predDiss.