/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,eig); }
/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,eig); }
/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,eig); }
/** * <p> * Computes a metric which measures the the quality of a singular value decomposition. If a * value is returned that is close to or smaller than 1e-15 then it is within machine precision. * </p> * * <p> * SVD quality is defined as:<br> * <br> * Quality = || A - U W V<sup>T</sup>|| / || A || <br> * where A is the original matrix , U W V is the decomposition, and ||A|| is the norm-f of A. * </p> * * @param orig The original matrix which was decomposed. Not modified. * @param svd The decomposition after processing 'orig'. Not modified. * @return The quality of the decomposition. */ public static double quality( DenseMatrix64F orig , SingularValueDecomposition<DenseMatrix64F> svd ) { return quality(orig,svd.getU(null,false),svd.getW(null),svd.getV(null,true)); }
/** * <p> * Computes a metric which measures the the quality of a singular value decomposition. If a * value is returned that is close to or smaller than 1e-15 then it is within machine precision. * </p> * * <p> * SVD quality is defined as:<br> * <br> * Quality = || A - U W V<sup>T</sup>|| / || A || <br> * where A is the original matrix , U W V is the decomposition, and ||A|| is the norm-f of A. * </p> * * @param orig The original matrix which was decomposed. Not modified. * @param svd The decomposition after processing 'orig'. Not modified. * @return The quality of the decomposition. */ public static double quality( DenseMatrix64F orig , SingularValueDecomposition<DenseMatrix64F> svd ) { return quality(orig,svd.getU(null,false),svd.getW(null),svd.getV(null,true)); }
/** * <p> * Computes a metric which measures the the quality of a singular value decomposition. If a * value is returned that is close to or smaller than 1e-15 then it is within machine precision. * </p> * * <p> * SVD quality is defined as:<br> * <br> * Quality = || A - U W V<sup>T</sup>|| / || A || <br> * where A is the original matrix , U W V is the decomposition, and ||A|| is the norm-f of A. * </p> * * @param orig The original matrix which was decomposed. Not modified. * @param svd The decomposition after processing 'orig'. Not modified. * @return The quality of the decomposition. */ public static double quality( DenseMatrix64F orig , SingularValueDecomposition<DenseMatrix64F> svd ) { return quality(orig,svd.getU(null,false),svd.getW(null),svd.getV(null,true)); }
/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,U.getMatrix(),W.getMatrix(),V.transpose().getMatrix()); }
/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,U.getMatrix(),W.getMatrix(),V.transpose().getMatrix()); }
/** * <p> * Computes the quality of the computed decomposition. A value close to or less than 1e-15 * is considered to be within machine precision. * </p> * * <p> * This function must be called before the original matrix has been modified or else it will * produce meaningless results. * </p> * * @return Quality of the decomposition. */ public double quality() { return DecompositionFactory.quality(mat,U.getMatrix(),W.getMatrix(),V.transpose().getMatrix()); }