Computes 1 - SS_res / SS_tot over all entries of V.

explain_variance(V, W, H)

Arguments

V

Observed data matrix.

W

Gene loading matrix.

H

Sample loading matrix.

Value

Scalar in [0, 1] when defined; NA if total variance is zero.